www.pudn.com > λ²Ù×÷.zip > PHONENUM.CHT
Flowchart for phonenum.c (C News, Volume I, Issue 18)
+-----------------+
| Start |
+-----------------+
|
|
|
+-----------------+
| Get Input |
+-----------------+
|
|
|
+-----------------+
| Correct Number |-------------------------------------------------------+
| of Arguments ? | |
+-----------------+ |
| Y |
| |
| |
+-----------------+ |
+---------------------------| Add Names | |
| Y +-----------------+ |
| | N +-----------------+
| | | Display |
+-----------------+ | | Error Msg |
+---------| Ask User | +-----------------+ +-----------------+
| | for Data | | Search for | |
| +-----------------+ | Name | |
| | +-----------------+ |
| | | |
| | | |
| +-----------------+ | |
| | Write Data | | |
| | to File | +-----------------+ |
| +-----------------+ | Name Found ? |---------------------------+ |
| | +-----------------+ N | |
| | | Y | |
| | | +-----------------+ |
| +-----------------+ | | Display "No | |
+---------| Add Another | +-----------------+ | Name Found" Msg | |
Y | Name ? | | Display Name | +-----------------+ |
+-----------------+ +-----------------+ | |
| N | | |
| |------------------------------------+ |
+------------------------------------|----------------------------------------------------------------+
|
+-----------------+
| End |
+-----------------+