I am trying to print two vectors side by side. The code I am using (actually the fifteeth rendition of this code) is as follows:
for(iterA = B.begin(); iterA != B.end(); iterA++)
for(iter = A.begin(); iter != A.end(); iter++)
{
cout<<*iter<<" "<<*iterA;
}
cout<<endl;
Needless to say this code does not work. I am trying to print the following:
1 20
1 30
1 40
Any help is apprecitated. Thanks in advance.
D. Christman
for(iterA = B.begin(); iterA != B.end(); iterA++)
for(iter = A.begin(); iter != A.end(); iter++)
{
cout<<*iter<<" "<<*iterA;
}
cout<<endl;
Needless to say this code does not work. I am trying to print the following:
1 20
1 30
1 40
Any help is apprecitated. Thanks in advance.
D. Christman