Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~443 People Reached
Favorite Forums
Favorite Tags
Member Avatar for christodoulos14

hello i have the following file: 11 Lockers, Daniel;Engineer;53500 Adamson, John;Manager;77500 Newhall, Bob;Programmer;40000 Brown, James;Clerk;28000 i need to put each employee into a struct and then each struct into an array. so far i did this: else { fscanf(sourcefile,"%d\n",&count); printf("%d\n",count); Array=(employeeType *)malloc(sizeof(employeeType)*count); for(i=0;i<count;i++) { fscanf(sourcefile,"%s",Array[i].name); fscanf(sourcefile,"%s",Array[i].job); fscanf(sourcefile,"%d",&Array[i].salary); } } for(i=0;i<count;i++) …

Member Avatar for christodoulos14
0
264
Member Avatar for christodoulos14

hello i have some a problem with malloc, here is my code: int add(int m,int n) { int **pina, **pinb, **pinc; int c=m*n, i=0, j=0; pina=NULL; pinb=NULL; pinc=NULL; free(pina); free(pinb); free(pinc); pina = (int **) malloc (sizeof(int *) *c); pinb = (int **) malloc (c* sizeof(int *)); pinc = (int …

Member Avatar for christodoulos14
0
179