greet.cpp

来自「包括ARM开发环境的使用和一些调试用的源程序」· C++ 代码 · 共 19 行

CPP
19
字号
// ask for a person's name, and greet the person
#include <iostream>
#include <string>

int main()
{
	// ask for the person's name
	std::cout << "Please enter your first name: ";

	// read the name
	std::string name;     // define `name'
	std::cin >> name;     // read into `name'

	// write a greeting
	std::cout << "Hello, " << name  << "!" << std::endl;
	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?