1. 函数
2. 包含iostream头文件
3. 使用std名称空间
4. cout<<”Hello,world”<<endl;
5. Int cheeses
6. cheeses=32;
7. cin>>cheeses;
8. cout<<”We have”<<cheeses<<”varieties of cheeses\n”;
9. 1)函数名叫froop,带有一个参数,参数是double类型,函数返回一个整型值
2)函数名叫rattle,带有一个参数,参数类型int类型,无返回值
3)函数名叫prune,函数无参数,函数返回一个整型值
10.函数没有返回值时 void rattle(int n)
11.1)using namespace std;
2) using std::cout;
3) std::cout
原文:https://www.cnblogs.com/ceovs/p/14673004.html