Mar 7, 2007 #1 F fatma1000 Banned Joined Apr 30, 2006 Messages 147 Helped 3 Reputation 6 Reaction score 2 Trophy points 1,298 Location eygpt Activity points 0 please i have aproblem in c++ in my program i need to stop the program at time step (say 1000) and i want to trace the program after that step by step what i mean in want to trace my program step by step but this after some time how can i do this ? thanks
please i have aproblem in c++ in my program i need to stop the program at time step (say 1000) and i want to trace the program after that step by step what i mean in want to trace my program step by step but this after some time how can i do this ? thanks
Mar 7, 2007 #2 M medra Full Member level 2 Joined Oct 15, 2006 Messages 149 Helped 37 Reputation 74 Reaction score 6 Trophy points 1,298 Location Egypt Activity points 2,012 Re: help me in c++ hi usually in writing any software we make the delays =1 then after the program is checked we put the delays
Re: help me in c++ hi usually in writing any software we make the delays =1 then after the program is checked we put the delays
Mar 7, 2007 #3 F fatma1000 Banned Joined Apr 30, 2006 Messages 147 Helped 3 Reputation 6 Reaction score 2 Trophy points 1,298 Location eygpt Activity points 0 Re: help me in c++ what you mean i don not understand you
Apr 10, 2007 #4 S shabab Member level 3 Joined Apr 3, 2007 Messages 57 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,537 help me in c++ use a delay(Sleep) command and pass value 1000 for one second delay.
Apr 12, 2007 #5 S scheik Junior Member level 3 Joined Feb 28, 2007 Messages 26 Helped 4 Reputation 8 Reaction score 0 Trophy points 1,281 Activity points 1,412 help me in c++ u have not studied well the Bible for C plz Refer that
Apr 13, 2007 #6 J Jonathan_T Member level 1 Joined Mar 28, 2007 Messages 33 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Activity points 1,447 Re: help me in c++ I don't unstand you too, but i try to show you in step time programming thus as below , whice is you want. Code: While(!bCompleted) { switch(timeStep) { case 1 : "your code something1" ; Sleep(1000) ; timeStep++ ; case 2 : "your code something2" ; Sleep(1000) ; timeStep++ ; case 3: "your code something3" ; Sleep(1000) ; timeStep++ ; default : break; } --------------- My Favorites embedded hardware ------------- www.embedded-hardware.com
Re: help me in c++ I don't unstand you too, but i try to show you in step time programming thus as below , whice is you want. Code: While(!bCompleted) { switch(timeStep) { case 1 : "your code something1" ; Sleep(1000) ; timeStep++ ; case 2 : "your code something2" ; Sleep(1000) ; timeStep++ ; case 3: "your code something3" ; Sleep(1000) ; timeStep++ ; default : break; } --------------- My Favorites embedded hardware ------------- www.embedded-hardware.com
Apr 14, 2007 #7 Y yjkwon57 Full Member level 4 Joined Jul 31, 2004 Messages 218 Helped 24 Reputation 48 Reaction score 3 Trophy points 1,298 Activity points 1,808 Re: help me in c++ You will use a timer interrupt. Then, I think everything will be OK.