flow/procedure diagram

View: New views
1 Messages — Rating Filter:   Alert me  

flow/procedure diagram

by slickuser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I'm new to using Doxygen.

Is it possible for Doxygen to generate a flow/procedure diagram for C++ like this?



Here is the sample code:

#include <iostream>

using namespace std;

int y()
{
        int i = 0;
        while(i <= 50)
        {
                i++;
        }
        return 0;
}

int x()
{
        return 1;
}

int x1()
{
        return 1;
}

int x2()
{
        return 2;
}

int main()
{
  int x;

  x = 0;
  while(x <= 10)
  {
          int y = 0;
          if (x == 0)
          {
                  x();
          }
          else if(x == 1)
          {
                  x();
                  y();
          }
          else
          {
                  x1();
          }

          // show even only
          if (y%2 == 0)
          {
                  x2();
          }

          x++;
          y++;
  }

}


Thanks alot.
LightInTheBox - Buy quality products at wholesale price