how to generate a state transition diagram in c

Discussion in 'C' started by ashokkumarrsp, Sep 12, 2006.

  1. ashokkumarrsp

    ashokkumarrsp New Member

    Joined:
    Sep 12, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    how to generate a state transition diagram in c.. give me the implementation steps
     
  2. Bill Pursell

    Bill Pursell New Member

    Joined:
    Nov 29, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    
    void
    Puts(const char *txt)
    { 
            if (puts(txt) == EOF) {
                    perror("stdout");
                    exit(EXIT_FAILURE);
            }
    }
    
    int
    main(void)
    {
            Puts(" -------     -------");
            Puts(" |  1  | --> |  2  |");
            Puts(" -------     -------");
            return EXIT_SUCCESS;
    }
     
  3. ashokkumarrsp

    ashokkumarrsp New Member

    Joined:
    Sep 12, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    thanks for the code
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice