Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <cstring>
- #include <cstdio>
- using namespace std;
- string losowanieSlowa()
- {
- int a;
- string slowa[4];
- slowa[0] = "m a m a";
- slowa[1] = "d u p a";
- slowa[2] = "p i e s";
- slowa[3] = "t a t a";
- slowa[4] = "k o t";
- char str[] = slowa[1];
- char korektor[] = " ";
- char *token = strtok(str,korektor);
- while (token)
- {
- cout << token << endl;
- token = strtok(NULL,korektor);
- }
- }
- int main()
- {
- losowanieSlowa();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement