标签:
函数又叫方法,即实现某项功能或服务的代码块
void show(){ std::cout << "hello world!"; }
例子如下:
#include<iostream> void show(){ std::cout << "Hello World!" << std::endl; } int main(){ show(); return 0; }
2.1 一个简单的函数
原文地址:http://www.cnblogs.com/cplusplus-study/p/4503057.html