ex2_01.cpp

来自「print the hello world on the screen」· C++ 代码 · 共 21 行

CPP
21
字号
//EX2_01.CPP
//A Simple Example of Program
#include <iostream>

//using namespace std;

int main()
{
	int apples,oranges;
	int fruit;

	apples=5; oranges=6;
	fruit=apples+oranges;

	std::cout<<std::endl;
	std::cout<<"oranges are not the only fruit..."<<std::endl
		<<"- and we have" <<fruit<<"frutis in all."<<std::endl;
	std::cout<<std::endl;

	return 0;
}

⌨️ 快捷键说明

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