2013年6月28日

一段c++程序

摘要: #include#includeusing std::cout;using std::endl;int main(){ const char ca[]={'h','e','l','l','o'}; const char *cp=ca; while(*cp) { cout<<*cp<<endl; ++cp; } system("pause"); return 0;}编译程序没有错误,但是不知道为什么每次运行结果都不一样????2. 关于数组的动态释放空间 C++语言为指针提 阅读全文

posted @ 2013-06-28 16:57 花旁教主 阅读(262) 评论(0) 推荐(0) 编辑

导航