![]() |
|
#1
|
|||
|
|||
Error c2106: '=' : left operand must be l-valueFor some reason every time it comes to the line of code:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
|||
|
#2
|
||||
|
||||
Re: error c2106: '=' : left operand must be l-valueAre you trying to set number2 to 0.0 or compare number2 to 0.0? Look carefully.
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#3
|
|||
|
|||
Re: error c2106: '=' : left operand must be l-valueAlso it should be '#include <iostream.h>' instead of '#include <iostream>'.
|
|
#4
|
|||
|
|||
Re: error c2106: '=' : left operand must be l-valueStill not getting it... I'm extremely new to C++, I just starting taking a college class on it...
CPP / C++ / C Code:
|
|
#5
|
||||
|
||||
Re: error c2106: '=' : left operand must be l-valueQuote:
Actually, iostream.h is deprecated in C++. __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#6
|
|||
|
|||
Re: error c2106: '=' : left operand must be l-valueQuote:
CPP / C++ / C Code:
Quote:
In C++ '=' is the assignment operator, '==' is the comparison operator. If you need to compare two values, you use '==', CPP / C++ / C Code:
Also, shouldn't this CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
|
#7
|
|||
|
|||
Re: Error c2106: '=' : left operand must be l-valueThank you very much, problem fixed.
|
Recent GIDBlog
Review: Gel laptop cooling pad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Link List In C | Peter_APIIT | C Programming Language | 33 | 12-Jun-2008 14:33 |
| Disabling left click? | tvdoc | Apache Web Server Forum | 0 | 19-Jul-2007 15:06 |
| triangle (polygon), drawing, sizing, and rotation programme using linked lists... | promsan | C Programming Language | 12 | 14-May-2007 15:03 |
| need help with a console menu system | BullBuchanan | C++ Forum | 6 | 20-Aug-2006 15:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The