本帖最後由 林羿丞 於 2020-8-1 10:50 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- void hello()
- {
- cout<<"HELLO!!"<<endl;
- }
- int myPlus(int x,int y,int z)
- {
- return x+y+z;
- }
- int main()
- {
- hello();
- cout<<myPlus(640000,50420,1200000)<<endl;
- system("pause");
- return 0;
- }
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- void hello();
- int myPlus(int,int,int);
- int main()
- {
- hello();
- cout<<myPlus(666,666,888)<<endl;
- system("pause");
- return 0;
- }
- void hello()
- {
- cout<<"HELLO!!"<<endl;
- }
- int myPlus(int x,int y,int z)
- {
- return x+y+z;
- }
複製代碼 |