Note: vector < vector < string > > addresses;

I am having a problem with this line of code:

addresses.push_back(addy.c_str);

I am trying to push back an email address in the i location
of the 2-d vector.

I have tried:

addresses.push_back[(addy.c_str)];

and

addresses.push_back[(addy.c_str)];

but nothing is working >:/ I appreciate the help!

Ya I fixed it..brain fart.

Note: vector < vector < string > > addresses;

I am having a problem with this line of code:

addresses.push_back(addy.c_str);

I am trying to push back an email address in the i location
of the 2-d vector.

I have tried:

addresses.push_back[(addy.c_str)];

and

addresses.push_back[(addy.c_str)];

but nothing is working >:/ I appreciate the help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.