1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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