Why not use the capabilities of the stringstream class instead of atoi()?


#include <sstream>
#include <iostream>
#include <string>
#include <vector>

int main()
{