Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo
- {
- int A;
- int B;
- int C;
- };
- Foo foos[] = {
- {0,1,2},
- {3,4,5},
- // ...
- };
- struct Foo
- {
- Foo(int a, int b, int c) : A(a), B(b), C(c) {}
- int A;
- int B;
- int C;
- };
- const std::size_t FooSize = ...;
- Foo foos = new Foo[FooSize]();
- foos[0] = Foo(1,2,3);
- foos[1] = Foo(3,4,5);
- // etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement