Well, by this, I mean like having multiple structs. You know, like:
struct blah_struct[] {
int blah_var;
} blah[10]
How would I have a vector replace the blah[10]?
Type: Posts; User: tommy
Well, by this, I mean like having multiple structs. You know, like:
struct blah_struct[] {
int blah_var;
} blah[10]
How would I have a vector replace the blah[10]?
Thanks!
Question: Is there any way to use those with structs? Like vector<struct> or something?
How can I make an infinite-size array? I saw something about vector<type> but I'm a bit confused on how to use them... help?
Okay, so I'm using g++ and am getting an error that cout is not defined even when I include iostream:
#include <iostream>
int main() {
cout << "This should show up!" << endl;
return 0;
}