//Long words #include #include using namespace std; int main() { const int max_s=30; string word[max_s]; int nr; bool err_m; do { cout << "how many words (1<=nr<= "<>nr; err_m = nr<1 || nr>30; if(err_m) cout<<"wrong nr.!" <>word[i]; } //which is the longest one unsigned max_w=word[0].size(); int ind=0; for(int i=0; imax_w) { max_w=word[i].size(); ind=i; } } cout<<"The longest one is: "<