1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| int main(int argc, char * argv[])
{
std::string input = "AA1G2KL66M8PP96";
std::vector<std::string> lettres;
std::vector<double> nombres;
parserChaine(input,lettres,nombres);
std::cout << "Lettres: ";
for(std::vector<std::string>::iterator it = lettres.begin(); it != lettres.end(); it++) std::cout << *it << "/";
std::cout << std::endl;
std::cout << "Nombres: ";
for(std::vector<double>::iterator it = nombres.begin(); it != nombres.end(); it++) std::cout << *it << "/";
std::cout << std::endl;
return 0;
} |