fun_02.cpp

来自「数据结构常用算法合集」· C++ 代码 · 共 15 行

CPP
15
字号
 //fun_02.cpp
 //无参数的函数不返回数据
 #include <iostream.h>			//cout
 #include <conio.h>			//getch()
 void line();		 		//prototype of function
 void main()
 { line();
   getch();
 }
 //function draw a line
 void line()
 { for (int i=0;i<20;i++)
   cout << "-";  cout << endl;
 }

⌨️ 快捷键说明

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