C语言 vc++2010调试内存界面问题
0x000B4388 5d 32 00 00 69 aa 00 00 6e aa 00 00 00 00 00 00 00 00 06 00 79 00 61 00 6e 00 76 00 61 00 72 00 ]2..i?..n?..........y.a.n.v.a.r.
0x000B43A8 00 00 06 00 66 00 65 00 76 00 72 00 61 00 6c 00 00 00 05 00 61 00 70 00 72 00 65 00 6c 00 00 00 ....f.e.v.r.a.l.....a.p.r.e.l...
0x000B43C8 04 00 69 00 79 00 75 00 6e 00 00 00 04 00 69 00 79 00 75 00 6c 00 00 00 08 00 73 00 65 00 6e 00 ..i.y.u.n.....i.y.u.l.....s.e.n.
0x000B43E8 74 00 79 00 61 00 62 00 72 00 00 00 07 00 6f 00 6b 00 74 00 79 00 61 00 62 00 72 00 00 00 06 00 t.y.a.b.r.....o.k.t.y.a.b.r.....
0x000B4408 6e 00 6f 00 79 00 61 00 62 00 72 00 00 00 06 00 64 00 65 00 6b 00 61 00 62 00 72 00 00 00 0d 00 n.o.y.a.b.r.....d.e.k.a.b.r.....
0x000B4428 8f aa 00 00 97 aa 00 00 6d 7b 00 00 9f aa 00 00 6a 44 00 00 a6 aa 00 00 ac aa 00 00 73 7b 00 00 ??..??..m{..??..jD..??..??..s{..
0x000B4448 b2 aa 00 00 bc aa 00 00 c5 aa 00 00 cd aa 00 00 00 00 00 00 00 00 09 00 51 00 72 00 69 00 71 00 ??..??..??..??..........Q.r.i.q.
0x000B4468 6f 00 72 00 69 00 61 00 6e 00 00 00 00 00 01 00 f1 aa 00 00 00 00 19 00 41 00 7a 00 65 00 72 00 o.r.i.a.n.......??......A.z.e.r.
0x000B4488 69 00 20 00 28 00 4c 00 61 00 74 00 69 00 6e 00 2c 00 20 00 41 00 7a 00 65 00 72 00 62 00 61 00 i. .(.L.a.t.i.n.,. .A.z.e.r.b.a.
0x000B44A8 69 00 6a 00 61 00 6e 00 29 00 00 00 1b 00 41 00 7a 00 59 02 72 00 62 00 61 00 79 00 63 00 61 00 i.j.a.n.).....A.z.Y.r.b.a.y.c.a.
0x000B44C8 6e 00 ad 00 31 01 6c 00 31 01 20 00 28 00 41 00 7a 00 59 02 72 00 62 00 61 00 79 00 63 00 61 00 n.?.1.l.1. .(.A.z.Y.r.b.a.y.c.a.
0x000B44E8 6e 00 29 00 00 00 29 00 30 00 34 00 32 00 63 00 3a 00 30 00 30 00 30 00 30 00 30 00 34 00 32 00 n.)...).0.4.2.c.:.0.0.0.0.0.4.2.
0x000B4508 63 00 3b 00 30 00 38 00 32 00 63 00 3a 00 30 00 30 00 30 00 30 00 30 00 38 00 32 00 63 00 3b 00 c.;.0.8.2.c.:.0.0.0.0.0.8.2.c.;.
0x000B4528 30 00 34 00 31 00 39 00 3a 00 30 00 30 00 30 00 30 00 30 00 34 00 31 00 39 00 00 00 04 00 3c 04 0.4.1.9.:.0.0.0.0.0.4.1.9.....<.>
0x000B4548 30 04 3d 04 2e 00 00 00 03 00 41 00 5a 00 43 00 00 00 10 00 41 00 7a 00 65 00 72 00 69 00 20 00 0.=.......A.Z.C.....A.z.e.r.i. .
0x000B4568 28 00 43 00 79 00 72 00 69 00 6c 00 6c 00 69 00 63 00 29 00 00 00 0f 00 10 04 37 04 d9 04 40 04 (.C.y.r.i.l.l.i.c.).......7.?.@.
0x000B4588 31 04 30 04 58 04 b9 04 30 04 3d 04 a0 00 34 04 38 04 3b 04 38 04 00 00 0a 00 10 04 37 04 d9 04 1.0.X.?.0.=.?.4.8.;.8.......7.?.
0x000B45A8 40 04 31 04 30 04 58 04 b9 04 30 04 3d 04 00 00 10 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 @.1.0.X.?.0.=...................
0x000B45C8 00 80 04 00 00 00 00 00 02 00 04 00 00 00 00 00 02 00 00 00 05 00 11 04 30 04 37 04 30 04 40 04 .€......................0.7.0.@.
0x000B45E8 00 00 0c 00 11 04 30 04 37 04 30 04 40 04 a0 00 35 04 40 04 42 04 d9 04 41 04 38 04 00 00 0f 00 ......0.7.0.@.?.5.@.B.?.A.8.....
0x000B4608 27 04 d9 04 40 04 48 04 d9 04 3d 04 31 04 d9 04 a0 00 30 04 45 04 48 04 30 04 3c 04 4b 04 00 00 '.?.@.H.?.=.1.?.?.0.E.H.0.<.k...>
0x000B4628 08 00 27 04 d9 04 40 04 48 04 d9 04 3d 04 31 04 d9 04 00 00 0b 00 b8 04 af 04 3c 04 d9 04 a0 00 ..'.?.@.H.?.=.1.?.....?.?.<.>
0x000B4648 30 04 45 04 48 04 30 04 3c 04 4b 04 00 00 04 00 b8 04 af 04 3c 04 d9 04 00 00 05 00 28 04 d9 04 0.E.H.0.<.k.....>
0x000B4668 3d 04 31 04 d9 04 00 00 00 00 07 00 b0 ab 00 00 b7 ab 00 00 c5 ab 00 00 d6 ab 00 00 e0 ab 00 00 =.1.?.......??..??..??..??..??..
0x000B4688 ed ab 00 00 f3 ab 00 00 00 00 01 00 11 04 00 00 02 00 11 04 35 04 00 00 02 00 27 04 30 04 00 00 ??..??..............5.....'.0...
0x000B46A8 01 00 27 04 00 00 02 00 b8 04 30 04 00 00 01 00 b8 04 00 00 01 00 28 04 00 00 07 00 0b ac 00 00 ..'.....?.0.....?.....(......?..
源程序
#include "stdafx.h"
#include "stdlib.h"
#include "stdio.h"
int main(void)
{
printf("Hello world!\n" );
system("pause");
return 0;
}
为什么最后面都是乱码?看到有些帖子里面能显示出来代码的?怎么找到代码所对应的内存?
------解决思路----------------------
引用:00 00 00 00 00 00 06 00 79 00 61 00 6e 00 76 00 61 00 72 00 ]2..i?..n?..........y.a.n.v.a.r.
0x000B43A8 00 00 06 00 66 00 65 00 76 00 72 00 61 00 6c 00 00 00 05 00 61 00 70 00 72 00 65 00 6c 00 00 00 ....f.e.v.r.a.l.....a.p.r.e.l...
0x000B43C8 04 00 69 00 79 00 75 00 6e 00 00 00 04 00 69 00 79 00 75 00 6c 00 00 00 08 00 73 00 65 00 6e 00 ..i.y.u.n.....i.y.u.l.....s.e.n.
0x000B43E8 74 00 79 00 61 00 62 00 72 00 00 00 07 00 6f 00 6b 00 74 00 79 00 61 00 62 00 72 00 00 00 06 00 t.y.a.b.r.....o.k.t.y.a.b.r.....
n.o.y.a.b.r.....d.e.k.a.b.r.....
??..??..m{..??..jD..??..??..s{..
....f.e.v.r.a.l.....a.p.r.e.l...
..i.y.u.n.....i.y.u.l.....s.e.n.
t.y.a.b.r.....o.k.t.y.a.b.r.....
想知道这些是什么意思?代表的什么
n.o.y.a.b.r.....d.e.k.a.b.r.....
??..??..m{..??..jD..??..??..s{..
有的数据有文字意义, 有的本身就不是文字
如果你定义了char *p "hello world ".
找到p的地址,是可以看到 hello 的world的,
------解决思路----------------------
在IDE中打开你的这个.c/.cpp文件的时候,使用WinHex软件在整个内存中搜索“#include "stdafx.h"”