Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
AppClass.cpp | 2022-11-13 | 2.7 kB | |
AppClass.h | 2022-11-13 | 1.9 kB | |
AppClass.sm | 2022-11-13 | 1.9 kB | |
Makefile | 2022-11-13 | 3.4 kB | |
README.txt | 2022-11-13 | 632 Bytes | |
Totals: 5 Items | 10.6 kB | 0 |
C++ Example 2 This state machine "recognizes" the string 0*1* (which includes the empty string). This second example differs from the first in that it uses default transitions. + Building ---------- NOTE: Smc.jar must be built and installed. $ make checkstring + Executing ----------- $ checkstring <string> Try several different strings, such as: $ checkstring "" -> acceptable $ checkstring 000 -> acceptable $ checkstring 00011 -> acceptable $ checkstring 111 -> acceptable $ checkstring 000111100 -> unacceptable $ checkstring 00011a1b10c0 -> unacceptable