Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <conio.h>
- #include <stdio.h>
- #include <string.h>
- #include <locale.h>
- #include <iostream>
- #include <string>
- using namespace std;
- void main()
- {
- setlocale(LC_ALL, "RUS");
- char s[100]; int n, k;
- n = 0;
- gets_s(s);
- k = strlen(s);
- for (int i = 0; i < k; i++)
- {
- if (s[i] == ' ' || s[i] == ',' || s[i] == ';')
- {
- cout << endl;
- }
- else
- {
- cout << s[i];
- }
- }
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement