954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

View source code while running program

I have a dijkstra algorithm running and i would like to see it (next to the picture for which it is calculating). It would be cool if it can be done step by step: for the first step the block containing the used commands should have the color red; next step the second paragraph becomes red, etc.
can anyone help me?

terjohnny
Newbie Poster
2 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Thread subject is totally different from your question, please clarify what you need and I hope I can help you

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

i`m sorry that i wasn`t exact. So, i have a program that runs dijkstra on a network topology and highlights` the shortest path between a start point and an end point. I have seen in some programs that you can view the code that is executing in that exact moentan. Next to the network topology that is being analized by dijkstra, there is the code for dijkstra and every step in building the shortest path is highlisted in the algorithm and the design

terjohnny
Newbie Poster
2 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Look if you want to show the path for each iteration like from which node to which node you will use GDI+ for showing the movement, if you like to show which code executing there is no why to show which block of code executing, you need to do it yourself, i.e some text(code) and before calling the method show its code in plain text (handy-written)

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You