yea took out the extra one
Type: Posts; User: Harliqueen
yea took out the extra one
ok...what it is saying now is that there is a problem with the top line
(highlighting in red)
ok...I changed it to this
void printLib(struct lib *l ) {
int i;
for(i = 0;i < MAX_LENGTH;i++)
printf("%s %s", myLib->collection[i]->author, myLib->collection[i]->title);
}
}
void printLib(struct book *l, int length)
should that be changed to something like this
void printLib(struct library *l, int MAX_LENGTH)
Oh yea...ok I see what you mean now
so i basically need to get rid of the int i
Ok...well I changed the coding to what was suggested and now I have a problem with the
//Funtion to print list
void printLib(struct book *l, int length) {
int i;
for (i=0; i<length; i++)...
yes...for some reason once we started functions
in my class...I went to hell. It is so confusing for me,
and I don't even want to do this as a career. I wanted to
do game design art...but I have...
I tried to change the max length...and it crashed without printing anything out
Ok....so fix the spaces around the %s...I am not sure exactly how to fix lib function
I am quite stupid when it comes to programming
Mine didn't even get that far
my friend is doing the same code...and I think
his isn't even showing two of the lines
thanks
yep
11
1 TOM_SAWYER TWAIN FICTION
1 Intro_to_C_Programming King Computer_Science
3 Huckleberry_Finn
1 Huckleberry_Finn TWAIN FICTION
1 Guns,Germs,Steel Diamond Anthropology
1 Java5.0 Cohoon...
Basically it is just running that exact code and using a file i made called library.txt as the input in dev c++, it prints off exactly what it is suppose to output...but 5 seconds later in suddenly...
Hello, I am new to the forums and I just have a quick question.
For the most part the program does what it needs to (which is print off
the list of what was added and what was removed based on my...