Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
AppClass.cpp | 2022-11-13 | 6.9 kB | |
AppClass.h | 2022-11-13 | 2.1 kB | |
AppClass.sm | 2022-11-13 | 3.4 kB | |
Main.cpp | 2022-11-13 | 2.7 kB | |
Makefile | 2022-11-13 | 3.7 kB | |
README.txt | 2022-11-13 | 727 Bytes | |
Totals: 6 Items | 19.6 kB | 0 |
C++ Example 3 This state machine "recognizes" the palindromes (words that read the same backwards as forwards). The words consist of the alphabet {0, 1, c} where the letter 'c' may appear only once and marks the words center. + Building ---------- NOTE: Smc.jar must be built and installed. $ make checkstring + Executing ----------- $ checkstring <string> Try several different strings, such as: $ checkstring "" -> unacceptable $ checkstring 00 -> unacceptable $ checkstring 1c -> unacceptable $ checkstring c0 -> unacceptable $ checkstring abcba -> unacceptable $ checkstring 110010c010011 -> acceptable $ checkstring 110010c110010 -> unacceptable