C++第一个程序

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

#include "stdafx.h"
#include<iostream>


int _tmain(int argc, _TCHAR* argv[])
{
	std::cout << "Enter two numbers:" << std::endl;
	int v1,v2;
	std::cin >> v1 >> v2;
	std::cout << "The sum of " << v1 << " and " << v2 << "is" << v1 + v2 << std::endl;

	return 0;
}

posted @ 2012-01-05 22:30  [无名]  阅读(221)  评论(0编辑  收藏  举报