const/template/friend
const /*学生类(Student) const的用法 3_7_Student_const.cpp*/
#include<iostream>
#include<string>
using namespace std;class Student
{
public:Student(string n,string i):name(n) //name是常数据成员,只能采用成员列表初始化{// name = n;id = i;}voi…
2026/8/22 11:11:49