How to get flow chart or UML Activity Diagram for C/C++

jl66
jl66 used Ask the Experts™
on
Have a C++ program and want to get a flow chart or UML Activity Diagram to improve algorithm and understand the logic. Does any guru know any decent tools to do that?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I've used Crystal Flow to do this:

http://www.sgvsarc.com/Prods/CFLOW/Crystal_FLOW.htm

I thought it was pretty good.
Licensed or free?
Licenced: Rational Rose is big hit. Other option is RSM (Rational Software Modeler, it's a licensed eclipse plugin from Rational).
Free: You'll find plenty of UML plugins for eclipse.

I find Rose to be the best, perhaps because I've been using it all my life, but with eclipse plugins I've seen that if you don't have enough processing power it can be irritatingly slow.

How does it improve the algorithm? Well, just documenting it doesn't "improve" the algorithm as such, it gives you a better visual grip / understanding of an algorithm. You have to know how to improve it to improve it. The simplest example that comes to mind is breaking out of a loop when you find what you're looking for.
jl66Consultant

Author

Commented:
Thank both of you for the recommendations. Just want to get the ideas from your gurus. If the paid version is worth the price, definitely buy it.
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Jose ParrotGraphics Expert
Commented:
I agree to theKashyap hint: Rational is the number one.
By the free side, I recommend StarUML. I can't say if it is the number one, but I use it and like a lot.
It has also a programming language generator (C++, C#, java) and plugins to MS Office (Excel, Word, Powerpoint). The graphical interface is very intuitive.

Jose
Maybe I've misunderstood the question, but I recommended Crystal Flow because I thought the questioner wanted software that would produce UML documents from pre-existing code.  Does Rational Rose do this?  My use of it is limited, but I didn't think it did?
"...I thought the questioner wanted software that would produce UML documents from pre-existing code.  Does Rational Rose do this?  My use of it is limited, but I didn't think it did? "
Yes and no.
Yes, it generates "UML documents". I've done with java and c++ at least. It's called reverse engg in Rose.
No, it doesn't generate "flow diagram", which I guess is what you meant. :)
(same goes for RSM though I've never done it myself)
I suppose Crystal Flow can generate flow diagrams? Good to know!
jl66Consultant

Author

Commented:
Thanks a lot for the tips and links. Actually I need all.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial