#include <stdio.h>
#include <stdlib.h>
typedef struct {
int finalMark; /* Ï ãåíéêüò âáèìüò ãéá çï ìÜèçìá */
}StudentType;
struct var {
StudentType *aStudent;
char onomaa[20];
char eponimoa[20];
};
typedef struct var newtype;
newtype a;
main()
{
int bathmos;
char onoma[20];
scanf("%s",&onoma);
strcpy(a.onomaa,onoma);
printf("%s",a.onomaa);
system("pause");
scanf("%d",bathmos);
strcpy(a.aStudent->finalMark,bathmos);
printf("%d",a.aStudent->finalMark);
system("pause");
}
this is my problem and the title is problem anyone can help :S? i am new at c so keep it simple thanks :)