@Teddy17
2 / 2 / 2
Регистрация: 30.03.2014
Сообщений: 34
|
01.04.2014, 02:00
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #include <iostream>
#include <cstring>
using namespace std;
int main()
{
char str[20][100];int max=0;
for(int i=0;i<20;i++)
{
cin>>str[i];
if(strlen(str[i])>max)
max=i;
}
cout<<"Naibolshuiu dlinu imeet slovo pod indeksom: "<<max;
} |
|
0
|