![]() |
|
[C] vector <string> test[i] = int, how to convert vector <string> to integer. - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] vector <string> test[i] = int, how to convert vector <string> to integer. (/showthread.php?tid=5111498) |
vector <string> test[i] = int, how to convert vector <string> to integer. - LayersOSImodel - Dec 28, 2015 Hi guys, I have a problem. I have a string vector containing only numbers, i would affect it on a int variable but it wont work. How to convert this > int integer = 0; vector <string> test = {0,1,2,3,4}; test[0] = integer; When i do this it wont work, i would love to know how to converter string vector to integer. * - Remix - Dec 28, 2015 Just use an integer vector? * - LayersOSImodel - Dec 28, 2015 no, i need to convert it to integer. found the problem, ty anyway. |