In step time programming in C++

Status
Not open for further replies.

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
 

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++

what you mean i don not understand you
 

help me in c++

use a delay(Sleep) command and pass value 1000 for one second delay.
 

help me in c++

u have not studied well the Bible for C plz Refer that
 

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++

You will use a timer interrupt. Then, I think everything will be OK.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…