значит "ошибка правописания дикларации"
вот.
C |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| #include<stdio.h>
#include<conio.h>
#include<string.h>
struct MARSH
{ char nach[10];
char con[10];
int nom[3];
};
struct MARSH mas[30];
void main()
{
int i;
int s=0;
char m[10];
for (i=0;i<8;i++)
{
printf("nomer marshrut");
scanf("%d",&mas[i].nom);
printf("nachalnyi punkt");
scanf("%s",&mas[i].nach);
printf("conechnyi punkt");
scanf("%s",&mas[i].con);
}
for (i=0;i<8;i++)
if ((strcmp(m,mas[i].nach))==0)
{
printf("\n marshrut\n");
printf("%d",mas[i].nom) ;
printf("conechnaya: %s",mas[i].con);
s++;
}
if(s==0)
printf("marshrut ne nayden");
getch();
} |
|
только это рограмма, всеравно зацикливается... хотя я задания не читал.