#include "stdafx.h "
class point
{
public:
int x;
int y;
void output()
{
cout < <x < <end1 < <y < <end1;
}
}
int _tmain(int argc, _TCHAR* argv[])
{
point pt;
pt.x=5;
pt.y=5;
pt.output();
return 0;
}
我学的是VC6.0
在VC.net下写这个程序
编译不通过
高手指教
------解决方案--------------------------------------------------------
前边加
#include <iostream>
using namespace std;
把end1改成endl 一和L
------解决方案--------------------------------------------------------
#include <iostream>
#include "stdafx.h "
===>
#include "stdafx.h "
#include <iostream>
using name space std;
------解决方案--------------------------------------------------------
按ctrl+F5