`

C++ Console Application Hello World

    博客分类:
  • C++
阅读更多
小弟才开始学C++

// Console02.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <iostream>
using namespace std;
struct point {
  int x;
  int y;
  void output() {
    cout<<x<<endl<<y<<endl;
  }
};
void main()
{
   point pt;
   pt.x = 5;
   pt.y = 5;

   pt.output();

   int i;
   cin>>i;

}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics