#include "stdlib.h"
#include <iostream>
void main(){
//std是一个命名空间,cout<<输出右面的值,endl是操纵符具有输出换行的效果
std::cout << "Enter two numbers:" << std::endl;
int v1,v2;
//cin>>是读入流,接收用户输入值
std::cin >> v1 >> v2;
std::cout << "The total is:" << v1 + v2 << std::endl;
system("pause");
}
#include <iostream>
void main(){
//std是一个命名空间,cout<<输出右面的值,endl是操纵符具有输出换行的效果
std::cout << "Enter two numbers:" << std::endl;
int v1,v2;
//cin>>是读入流,接收用户输入值
std::cin >> v1 >> v2;
std::cout << "The total is:" << v1 + v2 << std::endl;
system("pause");
}