how to fill a vector within a struct

   I am passing a vector<tag> tagList to a function that splits html tag names and their attributes.  Since there can be multiple attributes I am using a vector<string> to hold these in my 'tag' struct.  I am having trouble filling this struct's inner vector.

     In main:
         // some code
         vector<tag> tagList;
         for(vector_size k = 0; k != v.size(); ++k)
             splitWords(v[k], tagList);
     Other function:
         void splitWords(const string& s, vector<tag>& list){
                 tag record;
                 //some code to split
                 if (count == 0)
     = s.substr(i, j-i);
        **             record.att.pushback(s.substr(i, j-i));

     I am getting an error on the line with the '**'.  The pushback is not working properly.  How can I fill a vector that is inside of a struct??  Thanks very much for any help ahead of time.  
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Maybe you need to spell it with an underscore:  "push_back", as on the following line.

If that's not it, it would help if you would show the declaration of tag::att and the error message you get.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
adr2002Author Commented:
Hmmm, I must have had a typo in the spelling of push_back.  Its working now.  The error message was saying that my struct was not compatible with the operator 'push_back' so I was thinking it was a compatiblility issue, but guess it was just a stupid mistake.  
    Thanks for the help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.