this code should be compliable..........
can someone try compile it!!!! please...it wont work for me
/*Here i must include the standard input output libary for input and output from the...
Type: Posts; User: molleman
this code should be compliable..........
can someone try compile it!!!! please...it wont work for me
/*Here i must include the standard input output libary for input and output from the...
C:\Users\molleman\Desktop\C Programming\Makefile.win [Build Error] [main1.o] Error 1
i got this error.....
# Project: AlgorithmsTest
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = main.o main.o $(RES)
LINKOBJ = main.o main.o $(RES)
LIBS...
int main(){
char delay;
int numSelected,i;
do{
FILE*fp;
if((fp=fopen("c:BOOKS.DAT","wb")) ==NULL){
thats it
main.o: main.c
$(CC) -c main.c -o main.o $(CFLAGS)
/* Function Protypes*/
void saveToFile(FILE*);
void getFromFile(FILE*);
void saveToFile(FILE*fp){
fp = fopen("c:BOOKS.dat","wb");
int i;
sorry it dosnt compile!!!
but i need to compare the string i read in to a global variable called "quit" at any point juring the while statement....
within my while statement i have calls to...
ok
while(strcmp(scanf("%s",qui),quit) != 0)
this is within one function
i have a local variable called char qui[3];
and then i have a global variable called quit[] = "quit"
void delayMessage(){
char delay;
printf("\n Please press enter to return to the main menu\n");
fflush(stdin);
scanf("%c",&delay);
}
i had that in already....and i just treid it agian...smae thing still happens
it displays the books and then the message but does not scan
but right now i realised what was wrong
and now im...
void viewBooks(){
printf("Displaying all books...\n");
for(int i = 0; i< count;i++){
// printf("%d. Bookname %s \n Book Serial %ld\n",i+1,books[i].title,&books[i].serial);
...
hello
first my code
void delayMessage(){
char delay;
printf("\n Please press enter to return to the main menu\n");
scanf("%c",delay);