返回列表 發帖
  1. #include<cstdlib>
  2. #include<iostream>
  3. #include<ctime>
  4. using namespace std;
  5. void dddd(int a,int s)
  6. {
  7.     cout<<a*s<<endl;
  8. }
  9. int f(int x,int y)
  10. {
  11.     return x+y;   
  12. }
  13. int main()
  14. {
  15.      dddd(8,7);
  16.      cout<<f(3,2);
  17.     system("pause");
  18.     return 0;   
  19. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. void hello();
  5. int myPlus(int,int,int);
  6. int main()
  7. {
  8.     hello();
  9.     cout<<myPlus(2,5,1)<<endl;
  10.     system("pause");
  11.     return 0;   
  12. }
  13. void hello()
  14. {
  15.     cout<<"HELLO!!"<<endl;
  16. }
  17. int myPlus(int x,int y,int z)
  18. {
  19.     return x+y+z;
  20. }
複製代碼

TOP

返回列表