More help needed
I've decided to add some more operations to my chemistry program. Now I'm digging into switch cases and and having some trouble.
I am trying to define the variables T1, T2, V11, and V21 as floats, but I get this error:
test2.ccp:128: warning: multi-line literals are deprecated
test2.cpp: In fuction 'int main()':
test2.ccp:128: T1 undelcared (first use this function)
test2.cpp:128: (Each undeclared identifier is reported only once for each function it appears in.)
test2.cpp:128: parse error before string constant
So basicly my question is: why is it not identifying T1?
Here is the code:
no " before the T1 and T2
cout<<T1 is "<<(V11*T2)/V21<<'\n';
cout<<T2 is "<<(V21*T1)/V11<<'\n';
cout<<"T1 is "<<(V11*T2)/V21<<'\n';
cout<<"T2 is "<<(V21*T1)/V11<<'\n';
Doh, so simple. Obvisiously over-looked that. Thanks for the help Jamsan :)