当前位置: 代码迷 >> VC >> 请问VC下的控制台程序
  详细解决方案

请问VC下的控制台程序

热度:5519   发布时间:2013-02-25 00:00:00.0
请教VC下的控制台程序
#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
  相关解决方案