|
it would be easier to post the whole code , as the one you post doesn't compile
here is my comments
1- first you need to check OrderIsOpen=0 or 1 before you enter the loop , i think that is done by calling Mytotal() at start then set OrderIsOpen to 0 if Mytotal==0 and set OrderIsOpen to 1 if Mytotal==1
2- you don't need to keep using return(0) in the main code that would terminate the code
3- I am not able to compile the code as its missing the main function but I guess if you take care of the above points you should be ok
__________________
“Risk comes from not knowing what you're doing”
Last edited by MiniMe; 03-31-2008 at 02:20 AM.
|