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

查看所有标签

Ruby Cookbook

Ruby Cookbook

Lucas Carlson、Leonard Richardson / O'Reilly Media / 2006-7-29 / USD 49.99

Do you want to push Ruby to its limits? The "Ruby Cookbook" is the most comprehensive problem-solving guide to today's hottest programming language. It gives you hundreds of solutions to real-world pr......一起来看看 《Ruby Cookbook》 这本书的介绍吧!

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具