1.代码如下:

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


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

return 0;
}

1、<< 表示输出运算符号

2、endl表示操作符

3、std表示 命名空间

4、::表示作用域运算符

posted on 2017-05-22 21:32  春天里的麦子  阅读(121)  评论(0编辑  收藏  举报