This is toonlover again, and I am currently messing with dynamic arays, in other words, vectors. I am trying to make an account vector, that increases for how many users register. Here is some code, yet i really don't know how to access the members of this sturcture:
I really don't know how access the members of acc in which are id,password,and name. Can someone help me how to do this? Thankyou in advance !Code:#include <iostream> #include <vector> using namespace std; typedef struct _acc { int id; int password; char name[]; }acc; int main() { vector<acc> vacc(4); system("PAUSE"); return 0; }