not that hard, just locate the first numeric digit then copy both parts to new char arrays
char str[] = "staff101";
char s1[6], s2[6];
strnapy(s1,str,5); // copy first 5 characters
strcpy(s2,&str[4]); // copy remaining characters
>>any idea guys if c++ can generate pdf
See this thread
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343