if i do ctrl+F5 program says "press any key to exit" after the 'while' loop
if i do normal run (F5) it doesn't draw the rectangles after i enter 'Y' or 'N', program just stays idle-
I was expecting the Dten object to call the Drawrect class and draw? any ideas please?
In lines 27,28 and 33,34 you declare new local variables temp1 and temp2, which hide the corresponding temp1 and temp2 from outer scope. The changes are then made to these local variables, while the outer-scope ones stay unchanged (zeroes), thus nothing is drawn. You should remove the short in lines 27,28,33,34.
->KRAkatau,
Many many thanks, I can't believe i have to travel all the way to my Mate's to help me only to realise I could have just come on this site from anyway!!!
So sad this site haven't got photos to names- but if you are opposite sex then triple kiss xxx for your help.
It works now, albeit, it exits after drawing the rectangles, but this is something I can resolve if I dig deeper into my memory banks anyway.