Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const char** words = new const char*[future final_n];
- size_t n = 0;
- size_t len = strlen(s);
- size_t begin = 0;
- for ( size_t i = 0; i < ; i++ ){
- if ( s[i] == '\0' || s[i] == ' ' ){
- n++;
- words[n] = s + begin;
- s[i] = '\0';
- begin = i + 1;
- }
- }
- size_t final_n = n;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement