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; }