No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
student
i've done all the coding, but it doesn't work, seem the if, cannot pass the information to the function.. [CODE]#include<stdio.h> #include <string.h> #include<ctype.h> #define FILENAME "ECE.txt" /*void proceed(struct registration com, int matric); void again(struct registration com,int);*/ struct registration { char code[10]; char subject[100]; int credit; }; int main() { int … | |
what about this one?? thanx, but when i've compile the program, it does not work for the error, 'com' uses undefined struct 'registration' and lots more [CODE=c]#include<stdio.h> #include<ctype.h> #define FILENAME "computing" void proceed(struct registration com, int matric); void again(struct registration com); struct registration { char code[10]; char subject[100]; int credit; … | |
[CODE=c]#include<stdio.h> #include<ctype.h> #define FILENAME "computing" //void proceed(struct registration com, int matric); //void again(struct registration com); struct registration { char code[10]; char subject[100]; int credit; }; int main() { int matric; char name; FILE *ECE; ECE = fopen(FILENAME, "r"); //struct registration com; puts("Welcome to pre-registration for sem 1 2008/2009\n"); puts("Enter your … | |
Title : Student Course Registration System Every semester you will use the university course registration system in the early weeks of new semester. Assuming that the pre-registration process has not been exercised. Now, you will try to create a similar system that will have somewhat the same function of the … | |
[CODE]#include<stdio.h> #define FILENAME1 "all.txt" #define FILENAME2 "even.txt" #define FILENAME3 "odd.txt" int main() { int i=0; FILE *all; all = fopen(FILENAME1, "r"); while(fscanf(all,"%d")!=EOF) { printf("\n%d",i); i++; } FILE *even; even = fopen(FILENAME2, "w"); FILE *odd; odd = fopen(FILENAME3, "w"); for(i=0;i<=10;i++) { if(i%2==1) fprintf(odd,"%d",i); else fprintf(even, "%d",i); } return 0; }[/CODE] |