![]() |
|
#1
|
|||
|
|||
Urgent questionMy C++ program is Turbo. When I write the following program my compiler display the following error, and I cant able to recognize my error. Please tell me some suggestion.
CPP / C++ / C Code:
The error are Compiling SCHOOL.CPP: Error SCHOOL.CPP 44: Cannot convert 'school *' to 'school' in function main() Error SCHOOL.CPP 44: Type mismatch in parameter 'student' in call to 'output(school,int)' in function main() Error SCHOOL.CPP 45: Cannot convert 'school *' to 'school' in function main() Error SCHOOL.CPP 45: Type mismatch in parameter 'student' in call to 'sort(school,int)' in function main() Error SCHOOL.CPP 47: Cannot convert 'school *' to 'school' in function main() Error SCHOOL.CPP 47: Type mismatch in parameter 'student' in call to 'output(school,int)' in function main() |
|||
|
#2
|
|||
|
|||
Re: Urgent questionQuote:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Urgent questionPlease learn array and pointer properly.
|
|
#4
|
|||
|
|||
Re: Urgent questionPart of your problem is your code is a little unclear with the number of variables sharing the same name. Let me show you something with a stripped down version of your code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
Here's my question: Why have this line? CPP / C++ / C Code:
CPP / C++ / C Code:
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please, This is Difficult question try for me! | bcompt143 | C++ Forum | 4 | 24-Aug-2008 10:14 |
| Urgent help regarding window service | slogeshwaran | Java Forum | 2 | 14-Jul-2008 03:22 |
| [GRAPHICS] - SymbolDesignerTool - URGENT HELP PLS | metan | Java Forum | 0 | 15-Mar-2006 01:32 |
| Urgent !question about read file(variable length) | robin1977 | C Programming Language | 2 | 13-Mar-2005 18:01 |
| question of practice | magiccreative | C++ Forum | 1 | 06-Feb-2004 08:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The