![]() |
|
#1
|
|||
|
|||
Trouble with a linked list...Hi again! As the title says, I'm having trouble with a linked list. For some reason, the compilator shows two messages and I can't find out what the problems are.
This is the code: CPP / C++ / C Code:
And these are the compilator's messages: Code:
I'm stuck. I don't know why it says that the function was't declared nor what to do to make the types compatible. |
|
#2
|
|||
|
|||
Re: Trouble with a linked list...Quote:
Each file is a separate compilation unit. When the compiler encounters the function EliminarLibro in file pract04.C, it doesn't know what that function is. Everything that is #included in a given file is visible. Things from other *.C files are not. You could put its prototype in Libro.h since you already include that header in pract04.C: CPP / C++ / C Code:
Quote:
Class member ISBN is what? (Answer an array of char) The parameter isbn is a pointer to char. so *isbn is a char. The compiler is telling you that it won't let you make that assignment. You probably want to use strcpy() or strncpy() to copy something into the member array ISBN rather than just using an assignment anyhow. Regards, Dave Last edited by davekw7x : 22-Jan-2007 at 14:07.
|
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| Help in C Print is not working with LinkList | batman3280 | C Programming Language | 3 | 09-Mar-2006 19:03 |
| linked list error message | Krandygrl00 | C++ Forum | 4 | 22-Jun-2005 14:13 |
| search linked list | itsmecathys | C++ Forum | 20 | 18-Apr-2005 01:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The