c++
Shipshape.
这个作者很懒,什么都没留下…
展开
-
MY1024
#include using namespace std;int main(){cout << “hello world!” << endl;return 2019;}原创 2019-10-24 22:33:52 · 656 阅读 · 1 评论 -
MY 1024
#include using namespace std;int main(){cout << “hello world!” << endl;return 2019;}原创 2019-10-24 22:32:01 · 640 阅读 · 0 评论 -
c++联合体
构建类examscore,用于存放学生姓名,年龄,成绩存储方式和 成绩4个数据,其中联合体有三种数据类型故可存放百分制,等级,过关与否三种形式的成绩,具体情况根据构造时调用的构造函数,所以又会有三种构造函数,当构造对象的成绩为int类型时,联合体取percent,枚举mode取percent作为标记(用于show函数),其他类型的成绩类似推理;#include #include using ...原创 2019-07-25 14:22:42 · 853 阅读 · 0 评论