首页 > 编程语言 > 详细

C++学习笔记

时间:2017-05-22 22:05:15      阅读:239      评论:0      收藏:0      [点我收藏+]

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

C++学习笔记

原文:http://www.cnblogs.com/ylllove/p/6891510.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!