2021年1月14日

C++容器之动态数组vector①

摘要: 5、小作业:使用之前课程中讲解的 CStudent 类型来定义多个 vector 动态数组,并进行初始化操作! #include <iostream> #include <vector> using namespace std; class Student { char* p_name; int a 阅读全文

posted @ 2021-01-14 22:30 SakuraQAQ 阅读(122) 评论(0) 推荐(0)

文件IO操作之文件指针

摘要: 4、小作业:通过文件读写的方式,自己实现一个函数,实现文件的拷贝功能。 #include <iostream> #include <fstream> using namespace std; bool copy_file(const char* x, const char* y ) { //读取 i 阅读全文

posted @ 2021-01-14 19:14 SakuraQAQ 阅读(120) 评论(0) 推荐(0)

导航