Ah, I see. Thanks for the information. I knew it had to do something with the preprocessor statements.
Type: Posts; User: skaldicpoet9
Ah, I see. Thanks for the information. I knew it had to do something with the preprocessor statements.
I am trying to define values for the variables "area" and "circ" but everytime I try to build the project I get this error:
error C2059: syntax error : '='
Here is the code in question:
...
I actually have the eBook of C++ for Dummies so I just pasted the code from there into VC++ Express. It was formatted that way in the book I just assumed that it would be fine to use in the compiler....
Thanks, that was the problem ;)
Recently I decided to start trying to teach myself C++ and picked up the C++ version of For Dummies to begin at the beginning. However the code that is given in the first chapter doesn't seem to...
Yes, this is what I thought but I wasn't quite sure. Well, at least I don't have to go through a long drawn out install process now :D
Thanks for the help everyone, I appreciate it a lot.
...
I recently purchased a new laptop and found out it has AMD64 architecture but was only installed with a 32 bit version of Vista (Home Premium). I was wondering what the advantages/disadvantages (if...
Ok, I understand now. Thanks for all of your help :)
Ok, I think I understand what you are saying but what is a pass-by-pointer?
So I would have to create an if statement for every form of math that the user inputs?
Something like:
if(symbol = +) {
scanf("%d", "%d", "%d",num1,symbol,num2);
ans...
I have an assignment due in Programming 1 and I need a little bit of help. I have already created the program but now I have one last thing to do. However, I don't quite understand what my professor...
Right on, that works. I knew it was something simple I was overlooking.
Oh, sorry about that, it must have got messed up when I pasted it.
Oops.
That actually isn't like that in the code though...I just checked. I just typed that on the forum like that.
Hmm, when I try to compile it with the code if((num1 ==0) || (num <=0));
it still doesn't display the error message when I type zero though, it only displays it after I type in the second number as...
I am trying to get this program to display an error message when the user inputs a zero for the base of an exponent. However, whenever I compile the program the program does not display an error...