2.2 函数的传参
时间:2015-05-14 14:03:05
收藏:0
阅读:209
给函数传递参数
#include<iostream>
int show(int a,int b){
return a + b;
}
int main(){
int a = 1, b = 2, c;
c = show(a, b);
std::cout << c << std::endl;
}
原文:http://www.cnblogs.com/cplusplus-study/p/4503067.html
评论(0)