MaximCherchuk

Laba for Nastia and kotans

Nov 25th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS 1
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     char alpha[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+";
  8.     char str[] = "g24323ewyfgwyegfy3032gf2egfeyf-23pe";
  9.     char *tokenizer = strtok(str, alpha);
  10.     while (tokenizer != NULL) {
  11.         cout << tokenizer << endl;
  12.         tokenizer = strtok(NULL, alpha);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment