c++小问题,求大佬帮忙看看
#include <iostream>
#include <string.h>
using namespace std;
class student
{
public:
string m_strName;
int m_iAge;
};
int main(void)
{
student stu;
stu.m_iAge = 2;
stu.m_strName = "慕课网";
cout<<stu.m_strName <<endl;
system("pause");
return 0;
}
vs编译不通过 codeblocks编译就通过,求大佬帮忙看看哪里出了问题,谢谢
#C++工程师#