printf("*\n",m); 用C++中的cout语句应该怎么写?

五层楼了我还没有满意答案!

第1个回答  2009-03-23
cout<<"*\n";

printf("*\n",m); 本身就是错误的本回答被提问者采纳
第2个回答  2009-03-23
cout<<"*"<<"\n"<<m;
第3个回答  2009-03-23
cout<<m<<endl;
第4个回答  2009-03-23
cout<<"*"<<endl;
cout<<m;
第5个回答  2009-03-23
std::cout<< "*\n";
相似回答