Родитель
29fe662f9b
Сommit
29e4a0c8f7
@ -1,10 +1,15 @@
|
|||||||
#include <cstdio> // Äëÿ fgets()
|
#include <cstdio>
|
||||||
#include <cstring> // Äëÿ strspn(), strcspn()
|
#include <cstring>
|
||||||
#include <iostream> // Äëÿ cout
|
#include <iostream>
|
||||||
|
|
||||||
const size_t MAX_SIZE = 256;
|
const size_t MAX_SIZE = 256;
|
||||||
const char* SEPARATORS = " \r\n,.!?:;()-";
|
const char* SEPARATORS = " \r\n,.!?:;()-";
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
char text[MAX_SIZE] = {0};
|
||||||
|
|
||||||
|
std::cout << "Enter the line: ";
|
||||||
|
fgets(text, MAX_SIZE, stdin);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче