<span style="font-size:18px;">// HelloWorld.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
using namespace std;
class Human
{
public:
Human():height(25),wid(30){cout<<"机器人制造完毕!\n性能为:"<<height*wid<<endl;}
private:
int height;
int wid;
};
int _tmain(int argc, _TCHAR* argv[])
{
Human h;
system("pause");
return 0;
}</span>
注意冒号