how does that change it? Not saying it doesnt I justdo not see the immediate result. Also why are globals so bad?
how does that change it? Not saying it doesnt I justdo not see the immediate result. Also why are globals so bad?
I'm going to echo laserlight's suggestion. There should only ever be one single instance of main. What it looks like you want to do here is have the program exit when it reaches the return statement of main. The problem is, your main function is called from within your display function, therefore existing only within the scope of that function. So the main is called, it returns a value (0) to your display function and the program continues to operate.Originally Posted by Raigne
Courage, my friends; 'tis not too late to build a better world. - Tommy Douglas