![]() |
|
#1
|
|||
|
|||
C++ Error that makes no sense!Please someone help, I am trying to code a c++ game player database but when i compile the class Player i get this error with all of the functions that are returning strings.
error C2371: 'Player::getemail' : redefinition; different basic types this is the code Player.h CPP / C++ / C Code:
Player.cpp CPP / C++ / C Code:
|
|
#2
|
|||
|
|||
|
When you define your functions, you should also say what each define. When you don't, C++ assumes you're returning a int.
So amend each function like so: CPP / C++ / C Code:
GF |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CD Buring Failed | skanth2000 | Computer Hardware Forum | 1 | 15-Nov-2003 04:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The