摘要:
可以基于typedef、using等关键词实现 typedef std::vector<int> intvec; using intvec = std::vector<int>; //这两个写法是等价的 另一个例子,函数指针: typedef void (*FP) (int, const std:: 阅读全文
posted @ 2022-08-17 16:49
爱吃砂糖橘的白龙
阅读(80)
评论(0)
推荐(0)
摘要:
方式1 struct stu{ char const *name; //姓名 int num; //学号 char sex; //性别 float score; //成绩 }; int main(){ struct stu s1={"www",1,'m',100.0}; stu s2={"ccc", 阅读全文
posted @ 2022-08-17 10:38
爱吃砂糖橘的白龙
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号