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;
i understand now... you cant set a variable like 'a' to equal 'b' and 'b' to equal 'c'...i wanted to make a chain ~ where they all equaled 2...but i guess u can't
i understand now... you cant set a variable like 'a' to equal 'b' and 'b' to equal 'c'...i wanted to make a chain ~ where they all equaled 2...but i guess u can't
No, I can, but you can't cuz you haven't got that far yet. Get readin!
No, I can, but you can't cuz you haven't got that far yet. Get readin!
hahaha...ok
i dont KNOW
but i understand that they can't all equal themselves and stuff
but one day i will overcome you
and i will be all
*boom chicka boom chicka boom*
and you will be all
*boop oop eep doop!*
......yeah.....thats exactly how it will be........
Hey don't let it get to you, we all had to start somewhere. When I first started with "C" I was so happy to print something on the screen, put the exe on a diskette, load the program on a different computer and show my friends.
Once you get the program to print what you want then you can get rocking.
Don't give up so fast. , I'll see if I can find a good C++ tutorial where you can copy and paste code and make it work.
Just remember with C/C++/VC++/MFC, getting off the ground is the hardest part. People are here to help, you might have to develop a hard shell, but it's worth it.
Bookmarks