摘要: 用C++写程序程序都几年了,自己学得也算得心应手。不过最近在看别人写的代码时,觉得自己对C++的不是很深入的了解,很多东西都已经忘了。最拿C++数组地址来说。#include <stdio.h>typedef struct{ int a; int b;}TESTSTRUCT;TESTSTRUCT g_TestStruct[5];int main(int argc, char *argv[]){ printf("sizeof(TESTSTRUCT) = 0x%x\n", sizeof(TESTSTRUCT)); printf("[g_TestStruct 阅读全文
posted @ 2011-07-03 12:52 Mingxx 阅读(1912) 评论(13) 推荐(0) 编辑