摘要:
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> using namespace std; template<typename T> T sum(T other1, T other2) { T reslut = 阅读全文
posted @ 2020-04-11 20:20
神迹丶
阅读(165)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; #include<vector> //定义一个类,用于存放数据 class Test { int a; public: Test(int x) :a(x){} void print_id() { cout << a < 阅读全文
posted @ 2020-04-11 20:10
神迹丶
阅读(314)
评论(0)
推荐(0)
摘要:
//头文件 #ifndef STUDENT_H #define STUDENT_H class Student { public: friend void Print_Student(); //友元声明 Student(const int m_student_id,const char* m_stu 阅读全文
posted @ 2020-04-11 16:07
神迹丶
阅读(230)
评论(0)
推荐(0)

浙公网安备 33010602011771号