摘要: #include <iostream>int show(int x,int y) //这返回x+y,要是void的话返回0{return x+y;}int main(){int a,b;cout<<"请输入两个整数:";std::cin>>a;std::cin>>b;std::cout<<"a+b"<<show(a+b);std::cout<<"main函数结束\n;return 0;} 阅读全文
posted @ 2012-12-15 22:00 坚持ever 阅读(98) 评论(0) 推荐(0)