摘要:
#include using namespace std; float convert(float); void main() { float tempfer,tempcel; cout>tempfer; tempcel=convert(tempfer); cout<<"输出" <<tempcel; cout<<"hello world"; } float convert(float tempf... 阅读全文
posted @ 2008-11-05 16:35
雨城
阅读(332)
评论(0)
推荐(0)
摘要:
#include using namespace std; int area(int a,int b); void main(){ int A,B,C; cin>>A; if(A>B; if(B) // 等价于 if(B!=0) cout<<"B is number.\n"; C=area(A,B); cout<<"A * B is " <<C; } int area(i... 阅读全文
posted @ 2008-11-05 15:58
雨城
阅读(323)
评论(0)
推荐(0)
摘要:
#include const unsigned int studenn = 29; typedef unsigned int Unint; using namespace std; Unint number=10,maxnumber=0; // number+=1; // maxnumber=number*studenn; 不能在函数体外存放指令. 会出错 void main() { ... 阅读全文
posted @ 2008-11-05 15:12
雨城
阅读(234)
评论(0)
推荐(0)

浙公网安备 33010602011771号