C++学习笔记

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、::表示作用域运算符

原文地址:https://www.cnblogs.com/ylllove/p/6891510.html