1 Star 0 Fork 0

CoderQi/cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
学生类.cpp 704 Bytes
一键复制 编辑 原始数据 按行查看 历史
CoderQi 提交于 2023-03-18 21:36 +08:00 . 318
//#include<iostream>
//using namespace std;
//
//class Student
//{
//public:
//
//
// //类中的属性和行为统称为成员
// //属性 成员属性 成员变量
// //行为 成员函数 成员方法
// string m_Name;
// int m_Id;
//
//
//
// void showStudent()
// {
// cout << "姓名:" << m_Name << " 学号:" << m_Id << endl;
// }
//
//
//
// void setName(string name)
// {
// m_Name = name;
// }
//
// void setID(int id)
// {
// m_Id = id;
// }
//};
//int main()
//{
// Student s1;
// s1.setName("张三");//s1.m_Name = "张三";
// s1.setID(1);//s1.m_Id = 1;
// s1.showStudent();
//
//
// Student s2;
// s2.m_Name = "李四";
// s2.m_Id = 2;
// s2.showStudent();
//
//
// return 0;
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/programmercg/cpp.git
git@gitee.com:programmercg/cpp.git
programmercg
cpp
cpp
master

搜索帮助