![]() |
|
#1
|
|||
|
|||
Compile ErrorsI'm having several compile errors that I am not understanding. My code and errors are below, inserted after lines of code for convenience, along with what I think the problem is:
//Driver.cpp CPP / C++ / C Code:
I think these two are because my return type is void in my function definition in my class? So I would either change to string type, or just have Pal.AskUserForPerson() as my call? //Date.cpp CPP / C++ / C Code:
I'm not sure what is causing these. Other relevant files: //Person.cpp CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
|
#2
|
||||
|
||||
Re: Compile ErrorsThe error:
CPP / C++ / C Code:
Error Dissection: binary '=' : no operator defined: you don't have an = operator for the types you are trying to set equal. right-hand operand of type 'void': Right side of the = (Pal.AskUserForPerson()) is a void value. CPP / C++ / C Code:
CPP / C++ / C Code:
This should start you on your way... __________________
Age is unimportant -- except in cheese |
|
#3
|
||||
|
||||
Re: Compile Errors//Date.cpp
CPP / C++ / C Code:
//Date.cpp CPP / C++ / C Code:
But this one is just declared in the header, Date.h. So you need to implement it here. |
|
#4
|
|||
|
|||
Re: Compile ErrorsYes, that's what I was thinking and what I stated in my post Re: binary= compile errors.
I think these two are because my return type is void in my function definition in my class? So I would either change to string type, or just have Pal.AskUserForPerson() as my call? amad1337 thanks for the info. |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compile Errors due to Default Parameters | jdbrine | C++ Forum | 1 | 17-Jun-2006 14:45 |
| Compile errors | earachefl | C++ Forum | 3 | 24-Feb-2006 16:49 |
| conditional compile logic | cable_guy_67 | C++ Forum | 15 | 03-Dec-2005 18:44 |
| Help with compiler errors | Krandygrl00 | C++ Forum | 3 | 01-Jun-2005 07:45 |
| Linker errors with multiple file progam | nkhambal | C Programming Language | 2 | 24-Apr-2005 02:37 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The