70,023
社区成员




#include <iostream>
#include <vector>
using namespace std;
struct MY_S {
int d0;
int d1;
};
typedef struct MY_S MY_STRUCT;
vector <MY_STRUCT> my_structs(2);
int main() {
my_structs[0].d0=10;
my_structs[0].d1=11;
my_structs[1].d0=20;
my_structs[1].d1=21;
cout<<my_structs[0].d0<<endl;
cout<<my_structs[0].d1<<endl;
cout<<my_structs[1].d0<<endl;
cout<<my_structs[1].d1<<endl;
return 0;
}
//10
//11
//20
//21
//
int main()
{
char x[][5] = { "hello", "world" };
return 0;
}