March 31st, 2009, 08:05 PM
ok...i fixed that part
but it says that 'c' is unintialized
and i did initialize it
Code:
#include <iostream>
#include <string>
using namespace std;
int main ()
March 31st, 2009, 01:03 AM
I made this code to find pythagorean theorums...
But it won't work right..
any help?
Code:
#include <iostream>
#include <string>
using namespace std;
int main ()
March 30th, 2009, 11:48 PM
yes, i know you can do it like that...
i meant like this
if a = 2
a =b
b = c
c = d
d = e
then e =
March 30th, 2009, 12:12 AM
i'm getting off now but that second link is awesome...i wanted to learn about makingwindows...ty for all the help..ill probably end up talking to one of u guys again...bye
March 30th, 2009, 12:07 AM
ty . i'll get right on it
March 30th, 2009, 12:06 AM
i know...i was kidding about the whole 'overcoming' thing...my friend has a giant book on c++ im gonna use. i'd say by the end of this year i'll have a good bit of knowlege in my head...don't...
March 29th, 2009, 11:49 PM
thank you guys...you have been a great help..with the code and encouragement
March 29th, 2009, 11:43 PM
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...
March 29th, 2009, 11:39 PM
thats fine...i understand
March 29th, 2009, 11:37 PM
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
March 29th, 2009, 11:29 PM
the first error went away but now it says my variables are unitialized and that e = 0 when it e should =2
March 29th, 2009, 10:38 PM
// assignment operator
#include <iostream>
using namespace std;
int main ()
{
int a,b,c,d,e;
a=2;
a = b;
March 29th, 2009, 10:22 PM
it still says
1>.\demo.cpp(9) : error C2106: '=' : left operand must be l-value
March 29th, 2009, 08:05 PM
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~
//...