What it's doing is... the menu comes up, I enter an option, it asks for dimensions, and then I give them to it. Then it calculates the area, and the menu pops back up. I want it to be done after it...
Type: Posts; User: rhymewithnothin
What it's doing is... the menu comes up, I enter an option, it asks for dimensions, and then I give them to it. Then it calculates the area, and the menu pops back up. I want it to be done after it...
I've got this program that seems to be working properly, but it keeps looping after it's done calculating the areas. Can anyone help me out with what's wrong with the loops?
/*Filename:...
Can do. I'll see what I can do. Thanks.
OK all the erros are gone, but when I try to run the I/O, it will ask me what shape I want to find the area of, and when I type what I want, it just ends the program. Here is the completed code if...
Thank you very much. When I compile and link now all the error messages are gone. Thanks again. I'll check back if I need more help.
Loko, you fixed it again. We're nearing the end, 5 more errors, and I may be able to get some of them myself.
Next one....
"called object is not a function" referring to
areaTri =...
Ok next error is... "parse error before 'else' "
I won't specify a line of code because it says this for every 'else' statement I made. What did I do wrong?
Gotcha. Let me take another shot at this...
That definitely worked, you're a genius. I'll fix all that stuff in the program and get back to you. Thanks for all the help so far.
Bithub, that makes sense, I remember seeing in the textbook some double =, but I didn't know what they meant and I couldn't find in the book where they explained them. But they were in the section...
That didn't work. Or at least the way that I understood it, didn't work. What I did was, where I had
char shape;
I added
char shape, char rectangle;
Aha. Thank you very much. I may just get this resolved tonight. Next question...
It says " 'rectangle' undeclared (first use in this function)" in reference to
if (shape = rectangle)...
Ok... I've never programmed in C before, but my friend is taking a C course and I'm pretty good with computers and stuff and I learn pretty fast, so he asked me to help him. I got his assignment and...