As you wish. I will not be helping you until you fix that. Global variables make your code more difficult to trace.Quote:
- thats just ugly and more work than required and since its now almost 2 a.m. and i'm running on 2 hours of sleep definately feeling lazy :-P
Okay, in that case you should at least provide comments to state their proper names.Quote:
- actually the assignment description says to call them that.... sure i doubt i'd lose points if i did use something else, but i've also got this algorithm memorized with pi, d, and f so works for me
As you wish. I will not be helping you until you fix that. Your lecturer chose C++ instead of Java, so write your C++ code like C++, not Java.Quote:
-doesn't matter for this class...
In your updated code, yes. That's good.Quote:
-int option=0;
while (option!=3)
nope looks initialized before use to me :-P
It is quite simple: if you want help, do things correctly when asked to do so. If not, then as you have admitted, you are lazy and do not deserve help.
EDIT:
In fact, I suspect that the use of global variables is indirectly related to your current problem. You are simply having difficulty tracing the code yourself.