随笔分类 -  C++

摘要:1、建立Student.h头文件 #ifndef STUDENT_H #define STUDENT_H #include <string> using namespace std; class Student{ private: string name; int age; public: void 阅读全文
posted @ 2020-02-14 14:15 菜鸟冲冲冲 阅读(254) 评论(0) 推荐(0)
摘要:计算首行两数相加 #include <iostream>11 #include <vector> using namespace std; int main() { vector<int> ivec; int num; while (cin >> num) { ivec.push_back(num) 阅读全文
posted @ 2020-02-10 15:00 菜鸟冲冲冲 阅读(2273) 评论(0) 推荐(0)
摘要:恢复内容开始 #include <iostream> #include <string> using namespace std; int main() { string line; while (getline(cin, line)) { cout << line; } return 0; } 运 阅读全文
posted @ 2020-02-05 20:33 菜鸟冲冲冲 阅读(978) 评论(0) 推荐(0)