返回列表 發帖
本帖最後由 林羿丞 於 2020-8-1 10:50 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. void hello()
  5. {
  6.     cout<<"HELLO!!"<<endl;
  7. }
  8. int myPlus(int x,int y,int z)
  9. {
  10.     return x+y+z;
  11. }
  12. int main()
  13. {
  14.     hello();
  15.     cout<<myPlus(640000,50420,1200000)<<endl;
  16.     system("pause");
  17.     return 0;   
  18. }


  19. #include<iostream>
  20. #include<cstdlib>
  21. using namespace std;
  22. void hello();
  23. int myPlus(int,int,int);
  24. int main()
  25. {
  26.     hello();
  27.     cout<<myPlus(666,666,888)<<endl;
  28.     system("pause");
  29.     return 0;   
  30. }
  31. void hello()
  32. {
  33.     cout<<"HELLO!!"<<endl;
  34. }
  35. int myPlus(int x,int y,int z)
  36. {
  37.     return x+y+z;
  38. }
複製代碼

TOP

返回列表