Thank you Laserve for your more detailed reply. I can see you don't find it too much of a hassle to tell me that "%c" is the correct syntax. I will change it right away.
However my biggest...
Type: Posts; User: Smola
Thank you Laserve for your more detailed reply. I can see you don't find it too much of a hassle to tell me that "%c" is the correct syntax. I will change it right away.
However my biggest...
i dont see what isnt complete about it. perhaps your compiler is old or too new or something. like i said, it is compiling fine for me. i dont know what the problem is for you.
how do i declare...
1st: the code compiles just fine for me. i am using telnet with a compiler on the other end. no problems happen for me. it may be the line that goes off the screen. it is shown in the code box...
Here it is:
#include <stdio.h>
struct record{
char book_name[50];
char author[50];
Yes I read a bit on the subject. A string is simply a character array. The variables you referred to "author_search" and "publisher_search" have now been declared as
char author_search[50];...
So should i just remove all the ampersands? why does it work with the other records? did you try compiling it yourself as well?
EDIT: and why is it not reading only the FIRST record book name?...
I am programming a simulation of a library catalogue and am using a switch statement for selections of types of data to be searched. searching year, edition, and price are all working just fine. ...