1,让我们建一个库和类
//stu.h
如下
#ifndef HEADER_STU
#define HEADER_STU
#include<iostream>
#include<string>
using namespace std;
class STU {
//默认private;
int stu_num;
int stu_born;
string stu_name;
string stu_sex;
public:
friend istream& operator >> (istream&, STU&);
friend istream& operator >>