返回列表 發帖
本帖最後由 高鋐鈞 於 2022-5-21 11:29 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. void hello();
  5. int myPlus(int,int,int);
  6. void hello()
  7. {
  8.     cout<<"這是hello函式"<<endl;
  9. }
  10. int myplus(int x,int y,int z){
  11.         return x+y+z;
  12. }
  13. int main()
  14. {
  15.     cout<<myplus(1,2,3)<<endl;
  16.     cout<<"這是主函式的hello"<<endl;
  17.         hello();
  18.     system("pause");
  19.     return 0;   
  20. }
複製代碼

TOP

返回列表