-
March 29th, 2009, 08:05 PM
#1
C++ Error...IDK what is wrong!
I am a beginner at C++...
I made this but I don't knowwhat it means
when the error says " error C2106: '=' : left operand must be l-value "
can someone help me???
~this is the code~
// assignment operator
#include <iostream>
using namespace std;
int main ()
{
int a,b,c,d,e;
2 = a;
a = b;
b = c;
c = d;
d = e;
cout << "If A=2, E=D, D=C, C=B, and B=A then ";
cout << "E=";
cout << e;
return 0;
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|