i know its easy to corect that mistakes but dunno i simply cant find them.
14 new types may not be defined in a return type
14 two or more data types in declaration of `vnos'
[CODE=c]#include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct galaxy{
char tokra[50];
char tauri[50];
char big[50];
char small[50];
}
void vnos(struct galaxy sgw[])
{
struct galaxy *ksgw;ksgw=sgw;
for(ksgw;ksgw<& sgw[2];ksgw++)
printf("tokra name: ");
scanf("%s",ksgw->tokra);
printf("tauri name: "); scanf("%s",ksgw->tauri);
/*printf("VNESI PRIIMEK IGRALCA: "); scanf("%s",kf->igralec.priime k);
printf("VNESI ZANR: "); scanf("%s",kf->zanr);
printf("VNESI LETO FILMA: "); scanf("%d",&kf->leto);*/
}
int main()
{
struct galaxy sgw[2], *ksgw;
ksgw=&sgw[0];
vnos(sgw);
/*big;
small;*/
system("pause") ;
return 0;
}[/CODE]
14 new types may not be defined in a return type
14 two or more data types in declaration of `vnos'
[CODE=c]#include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct galaxy{
char tokra[50];
char tauri[50];
char big[50];
char small[50];
}
void vnos(struct galaxy sgw[])
{
struct galaxy *ksgw;ksgw=sgw;
for(ksgw;ksgw<& sgw[2];ksgw++)
printf("tokra name: ");
scanf("%s",ksgw->tokra);
printf("tauri name: "); scanf("%s",ksgw->tauri);
/*printf("VNESI PRIIMEK IGRALCA: "); scanf("%s",kf->igralec.priime k);
printf("VNESI ZANR: "); scanf("%s",kf->zanr);
printf("VNESI LETO FILMA: "); scanf("%d",&kf->leto);*/
}
int main()
{
struct galaxy sgw[2], *ksgw;
ksgw=&sgw[0];
vnos(sgw);
/*big;
small;*/
system("pause") ;
return 0;
}[/CODE]
Comment