thanks..
i did this minutes ago.. it compiles ok but i can't see the result as the windows error message pops out..
Code:
#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
int main ()
{
char * add[200];
cout<<"Enter a string:"<<flush;
cin.getline(add[200], sizeof(add[200]));
char *ptr = strtok(add[200], ","); // split the strig at the comma
cout << "unit num = " << ptr << "\n";
ptr = strtok( NULL, ",");
cout << "street address = " << ptr << "\n";
system ("pause");
return 0;
}