摘要: Boy.h: #pragma once #include <string> #include <vector> using namespace std; class Girl; class Boy { public: Boy(); Boy(int age,string name,int salary 阅读全文
posted @ 2022-11-13 20:08 wshidaboss 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1.可以用简单的数据类型作为参数: #include <iostream> #include <vector> using namespace std; int main() { vector<int> data; data.push_back(1); data.push_back(5); for 阅读全文
posted @ 2022-11-13 17:08 wshidaboss 阅读(27) 评论(0) 推荐(0) 编辑