标签:char ret std include bsp int div 分享 pause
转载:http://blog.csdn.net/u013467442/article/details/43666955
#include<iostream> #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char c[3]={‘a‘,‘b‘,‘c‘}; char *p=c; cout<<*p<<‘ ‘<<(void*)p<<endl; cout<<*(p+1)<<‘ ‘<<static_cast<void*>(p+1)<<endl; cout<<*(p+2)<<‘ ‘<<static_cast<void*>(p+2)<<endl; system("pause"); return 0; }
标签:char ret std include bsp int div 分享 pause
原文地址:http://www.cnblogs.com/gaohai/p/7299513.html