In C, I'd reccommend sscanf(), not sure what exactly the way to do it in C++ with iostream would be. This works though. #include <stdio.h> #include <string.h> int main (int argc, char **argv) { static const char *key = "1,2,3,4,5,6,7"; char *extra; char *newKey; int newSize; int num1, num2...