65,187
社区成员




#include <fstream>
int main(void)
{
//......
std::ofstream testFile("hello.txt");
testFile<<"hello,world!"<<std::endl; //这一句正常
std::cout<<"OK"; //这一句报错,提示找不到cout,
//加上#include <iostream>就没事了
return 0;
}