I would probably use a while loop (or for loop without S5) for the
first condition C0, and I am thinking of evaluating the rest of the
conditions using if statements. But if I use if-statements, I am not
able to accomodate the breaks.
Program
├───────────────────────────────┐
┌─< C0 >─────────┐ │
│ | │
│ ┌────< C1 >──────────┐ │
│ ┌───< C2 >────┐ ┌──< C3 >─┐│
│ │ ┌─< C4 >─┐ [S1] ││
│ │ [S2] [S3] └────┬────┘│
│ │ │ │ ┌─< C4 >─┐│
│ │ │ │ [S4] ││
│ │ │ │ └───┬────┘│
│ └───┬────┴────────┴────────┘ │
│ [S5] │
│ └────────────────────────────┘
Program
Sounds pretty much like homework to me.
Ciao,
Marc 'BlackJack' Rintsch
It's nothing bad ask about help for a homework as long as noone expects to
get the entire solution.
To the OP: What is your problem?
Florian
Here is how I thought of solving this, but it does not work:
While C0 is false
if C1
if C2
now what?
Maybe it would help you if you added an S6 that does nothing underneath
the "C2 is true" branch of your flow chart.
--
Carsten Haese
http://informixdb.sourceforge.net
>
> Maybe it would help you if you added an S6 that does nothing underneath
> the "C2 is true" branch of your flow chart.
>
> --
> Carsten Haesehttp://informixdb.sourceforge.net
Think I found a sequence of statements that would work
if C1
if C2
else
if C4
S2
else
S3
else
if C3
S1
if C5 # This should be C5. There is an error in the chart.
S4
AutoFlowchart is a excellent source code flowcharting tool to
generate flowchart from source code. Its flowchart can expand and
shrink. and you can pre-define the the width , height,Horizontal
spacing and vertical spacing. Move and zoom is also very easy. It can
export the flowchart as a Microsoft Word file or a bitmap file. It can
help programmers understand, document and visualize source code.
As a new product to replace AgFlowchart, it revised the bugs of
AgFlowchart and add many features.
It supports C,C++,VC++(Visual C++ .NET),Delphi(Object Pascal).
Maybe it can help you!