Hi guys, im sorry if my English very bad :)

i got problem with this

char str[] = "staff101";

i would like to split "staff" and "101" and cout them.

im beginner in c++ hope you guys help me thank...

any idea guys if c++ can generate pdf because im using embedded sql c++ .

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.