#include <fstream>
using namespace std;
class File
{
public:
File()
{
outfile.open("result2.txt");
}
void out()
{
outfile << "你好";
}
private:
ofstream outfile;
};
int main()
{
ofstream outfile("result.txt");
outfile << "nnihao " ;
File out;
out.out();
return 0;
}