vc++问题,为啥出现这种情况
我使用Visual Studio 2010 简单向文件输出helloworld
CFile test_file;
test_file.Open(_T("./test.txt"), CFile::modeCreate|CFile::modeWrite);
test_file.Write("helloworld", sizeof("helloworld"));
test_file.Write("helloworld", strlen("helloworld"));
test_file.Write("helloworld", sizeof("helloworld")); // 有这一行就会出现乱码,没有就正常
test_file.Close();