ФІО = Горбаченко В.А. | Ящук Паша Запитання:/* Написати програму, яка б зчитувала з клавыатури строку символыв та виводила на екран найкоротше слово в цій строчці */ #include #include #include #define n 256 // довжина строки using namespace std; int main() { char str[n]; char str2[n]; int minlength=0; // строка, символ // зчитуємо і виводимо символ fflush(stdin); cout << "Input the string:" << endl; cin.getline(str, n); strcpy(&str2[0],str); // Зчитуємо строку char *pword = strtok(str, " ,-.?!"); //http://www.cplusplus.com/reference/clibrary/cstring/strtok/ //http://www.softtime.ru/dic/id_dic=73&id_group=1 int count=0; if (pword){ minlength=strlen(pword); } while(pword)// перебираємо слова (до тих пір поки не буде пусто) { // cout< "<