C++ 实例 - 标准输入输出

C++ 教程 · 2019-02-26 10:14:44

使用 C++ 获取用户的输入,并输出到屏幕:

实例

#include <iostream> using namespace std; int main() { int number; cout << "输入一个整数: "; cin >> number; cout << "输入的数字为: " << number; return 0; }

以上程序执行输出结果为:

输入一个整数: 12
输入的数字为: 12

点击查看所有 C++ 教程 文章: https://codercto.com/courses/l/18.html

查看所有标签

Weaving the Web

Weaving the Web

Tim Berners-Lee / Harper Paperbacks / 2000-11-01 / USD 15.00

Named one of the greatest minds of the 20th century by Time , Tim Berners-Lee is responsible for one of that century's most important advancements: the world wide web. Now, this low-profile genius-wh......一起来看看 《Weaving the Web》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具