Also take into account that statement
vector<test> array;
shall be removed from the header and placed in a module.
I have not learned std::vector<test>::size_type i = 0; so I can't use it in the assignment. I tried int i = 0; but got alot of errors?
You may change
std::vector<test>::size_type i = 0;
to
unsigned int i = 0;
I took out the scope resolution operator because I include namespace but the following still produce error.
1 2 3 4 5 6 7 8 9
|
for ( vector<test>::unsigned int i = 0; i < array.size(); i++ )
{
for ( vector<Value>::unsigned int j = 0; j < array[i].contain.size(); j++ )
{
cout << array[i].contain[j] << endl;
}
cout<< endl;
}
|
Last edited on
Show error messages.
I am sorry. You shall write
1 2 3 4 5 6 7 8
|
for ( unsigned int i = 0; i < array.size(); i++ )
{
for ( unsigned int j = 0; j < array[i].contain.size(); j++ )
{
cout << array[i].contain[j] << endl;
}
cout<< endl;
}
|
Last edited on
Okay that works. Thanks for being so helpful and patience, I really appreciate it