struct
小吴WZK
编程小白
展开
-
struct,2.0,数组的使用格式
#include<bits/stdc++.h> using namespace std; struct fin { int year; string month; int day; }; int main() { fin p[2]= { {2021,"December",31}, {2022,"January",1} }; cout<<"Today is "<<p[0].year&.原创 2021-11-27 12:38:16 · 344 阅读 · 0 评论 -
struct,1.0,struct的用法
#include<bits/stdc++.h> using namespace std; struct fin { int year; string month; int day; }; int main() { fin p= { 2022, "December", 31 }; cout<<"This year is "<<p.year<<",tod.原创 2021-11-27 12:27:08 · 244 阅读 · 0 评论