student.cpp
来自「谭浩强 《C++ 程序设计》第三版的部分课后练习题源码」· C++ 代码 · 共 24 行
CPP
24 行
#include"student.h"
void student::set()
{
cout<<"input the number :";
cin>>num;
cout<<"input the name: ";
cin>>name;
cout<<"input the sex (f/m): ";
cin>>sex;
}
void student::disply()
{
cout<<"the number is : "<<num;
cout<<"the name is : "<<name;
cout<<"the sex is : "<<sex;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?