![]() |
|
#1
|
|||
|
|||
Cannot implicitly convert type 'int' to 'bool'Hello all,
I am trying to redo a code in C# but I have a small mistake which I can't figure out. The error is: Cannot implicitly convert type 'int' to 'bool'. I do not have a bool which confuses me. The error occurs with the hasRemainder function at the if statements. I have seen some good post in this forum with helpful people. I hope someone can give me the right direction to correct my mistake. Here is the code: C-SHARP / C# Code:
Many thanks for all that look and help... Last edited by LuciWiz : 04-Aug-2009 at 15:41.
Reason: Please insert your C# code between [c#] & [/c#] tags
|
|||
|
#2
|
|||
|
|||
Re: little help with errorWait... my return (a%b) is a bool return, isn't it???
|
|
#3
|
|||
|
|||
Re: little help with errornever mind... now I see my mistake...
if (hasRemainder(a, b) equal the bool from the function... rest of code... coffee break.... |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| Linked Lists advice request | promsan | C Programming Language | 74 | 23-May-2007 09:29 |
| Major newbie problem | cynack | MS Visual C++ / MFC Forum | 1 | 08-Apr-2007 12:25 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 11:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 21:30 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The