编写了一段很简单的代码   #include<afx.h>
#include<iostream>
using namespace std;int main()
{ CString str("haha");
cout<<str<<endl;
cout<<str.Left(1)<<endl;
return 0;
}
而且在工程中也也设置了使用mfc
可是运行结果不是想要的