strtok ( ) : Extracts the number at key c_str ( ) : Type cast string to char *
char * s = strtok ( ( char * ) str . c_str ( ) , " ▁ " ) ; while ( K > 1 ) { s = strtok ( NULL , " ▁ " ) ; K -- ; } cout << string ( s ) << " ▁ " ; }