- #include<iostream>
- #include<cstdlib>
- using namespace std;
- void hello()
- {
- cout<<"喂!"<<endl;
- }
- int myPlus(int a,int b,int c)
- {
- return a+b+c;
- }
- int main()
- {
- hello();
- cout<<myPlus(1,2,6)<<endl;
- system("pause");
- return 0;
- }
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- void hello();
- int myPlus(int,int,int);
- int main()
- {
- hello();
- cout<<myPlus(1,2,6)<<endl;
- system("pause");
- return 0;
- }
- void hello()
- {
- cout<<"喂!"<<endl;
- }
- int myPlus(int a,int b,int c)
- {
- return a+b+c;
- }
複製代碼 |