这个为什么报错
//const #include <iostream> using namespace std; int main(void) { //定义常量count const int count = 3; const int *p = &count; //打印count次字符串Hello C++ for(int i = 0; i < *p; i++) { cout << "Hello imooc" << endl; } return 0; }
//const #include <iostream> using namespace std; int main(void) { //定义常量count const int count = 3; const int *p = &count; //打印count次字符串Hello C++ for(int i = 0; i < *p; i++) { cout << "Hello imooc" << endl; } return 0; }
2016-06-14
举报