2021年1月7日

类的构造函数与析构函数

摘要: 8、小作业:有这么个函数: void test() { CStudent zhang_san("zhangsan", 'f', 1001, 21); CStudent li_si("lisi", 'm', 1002, 22); CStudent wang_wu("wangwu", 'm', 1003 阅读全文

posted @ 2021-01-07 19:28 SakuraQAQ 阅读(127) 评论(0) 推荐(0)

函数的重载与默认参数

摘要: 6、小作业:实现一个函数,该函数的声明如下:bool string_upper_diy(char str[], int str_len, bool b_odd_pos = true);功能为对字符串指定位置的字符变换为大写。str 参数为字符串的指针;str_len 为字符串的长度;b_odd_po 阅读全文

posted @ 2021-01-07 16:13 SakuraQAQ 阅读(71) 评论(0) 推荐(0)

导航