返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<ctime>
  4. using namespace std;
  5. void hello()
  6. {
  7.         cout<<"hello"<<endl;
  8. }
  9. int main()
  10. {
  11.         hello();
  12.     cout<<"test"<<endl;
  13.     system("pause");
  14.     return 0;   
  15. }
複製代碼

TOP

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

TOP

返回列表