Tuesday, July 14, 2009

Please Help me out with this c++ problem if any body knows !!!?

Hi i want to make a program using vector... but that is little bit hard for me to do because i have little knowledge about vector.. I know about string and using class. But the following functiion should be use with vector.. If anybody has any idea please responce. Im writting in details so that it makes clear. th





1) void displayList(const vector%26lt;string%26gt;%26amp; nameList, const vector%26lt;int%26gt;%26amp; teleNumList) : This function displays the name and the corresponding number of all the persons in stored in nameList. The nameList contains the name list and teleNumList contains the corresponding telephone numbers. The pre-conditions are that both nameList and teleNumList have the same size and nth element of nameList corresponds to the nth element of teleNumList.





2)void append(const string%26amp; name, int teleNum, vector%26lt;string%26gt;%26amp; nameList, vector%26lt;int%26gt;%26amp; teleNumList) : This function appends the person name and the corresponding telephone number teleNum to the nameList and the teleNumList respectively.

Please Help me out with this c++ problem if any body knows !!!?
goto codeproject.com in c++ stl u will get help


No comments:

Post a Comment