返回列表 發帖
本帖最後由 田家齊 於 2022-5-21 11:33 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<ctime>
  4. using namespace std;

  5. void hello(){
  6.         cout<<"這是hello函式"<<endl;
  7. }
  8. int myplus(int x,int y,int z){
  9. return x+y+z;
  10. }       
  11. int main()
  12. {
  13.     cout<<"myplus 1+2+3="<<myplus(1,2,3)<<endl;
  14.     cout<<"這是主函式"<<endl;
  15.      hello();
  16. system("pause");
  17.     return 0;
  18. }
複製代碼

TOP

返回列表