看板 PCSH91_305 關於我們 聯絡資訊
※ 引述《nfsong (我要當總圖的怪老頭)》之銘言: : #include<iostream> : using namespace std; : int a=1,result; : int result_1(int a1) : {a1=a++*5; : return a1;}; : int result_2(int a2) : {a2=a++*3; : return a2;}; : int main(){ : result=result_1(a)+result_2(a); : cout<<result<<endl; : system("pause"); : return 0; : } c語言交學~~~http://home.kimo.com.tw/jsliu60/CLANG/WebVer/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.152.110
nfsong:nice 很多程式說明 有沒有c++ 11/01 20:58
Rong72:語法差不多吧 這只是基本的... 11/01 21:02