There are some things wrong with you program:
float do0p(char op, float num1, float num2) {This function is made inside of main() which is impossible.
select (op) {
I think you mean switch() ?case +
I think you mean '+' instead of +
Same thing with the other chars.
you really should use code-indention, this is very hard to read.
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
hm i changed the code and it complies now, but when i try to inter a number, an error appears
You must give us details. "An error" can be any of 300+ things.
Explain fully
1) what is wrong
2) where the problem is
3) what it should do instead
4) cut and paste errors (don't paraphrase them)
That way our psychic powers don't have to be used. ;)
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944