2017年11月6日

函数:使用函数重载及默认参数实现程序

摘要: #include unsigned long left(unsigned long num, unsigned ct);char * left(const char *str, int n=1);int main(void){ using namespace std;... 阅读全文

posted @ 2017-11-06 16:17 MACHINE_001 阅读(85) 评论(0) 推荐(0) 编辑

函数:引用file类对象及io类对象作为参数打印文本及显示文本

摘要: #include #include #include using namespace std;void file_it(ostream & os, double fo, const double fe[], int n);const int LIMIT = 5;int... 阅读全文

posted @ 2017-11-06 14:34 MACHINE_001 阅读(103) 评论(0) 推荐(0) 编辑

函数:按引用传递函数参数进行操作

摘要: #include #include struct free_throws{ std::string name; int made; int attempts; float percent;};void display(const free_throws & ft);v... 阅读全文

posted @ 2017-11-06 11:35 MACHINE_001 阅读(101) 评论(0) 推荐(0) 编辑

导航