Hi,
Is it possible to add an int or a string or a char to a vector variable??
For example if I declare a vector variable as follows:
vector<string> abc;
Can I append an integer value or some string value to the vector variable such that every time I call a function that has this declaration, it creates a new vector variable abc appened with the int or string value?
Is there any other method by which I can do above operation
Please help.
Thanks,
Rishi
Is it possible to add an int or a string or a char to a vector variable??
For example if I declare a vector variable as follows:
vector<string> abc;
Can I append an integer value or some string value to the vector variable such that every time I call a function that has this declaration, it creates a new vector variable abc appened with the int or string value?
Is there any other method by which I can do above operation
Please help.
Thanks,
Rishi
Comment