标签:
函数可以先声明后定义,如下:
#include<iostream> int show(int, int);//函数声明 int main(){ int a = 1, b = 2, c; c = show(a, b); std::cout << c << std::endl; } //函数定义 int show(int a, int b){ return a + b; }
标签:
原文地址:http://www.cnblogs.com/cplusplus-study/p/4503075.html