Is there any c++ equivalent to Java's state transition table? If there is can anyone illustrate with an example?
Is there any c++ equivalent to Java's state transition table? If there is can anyone illustrate with an example?
What is Java's state transition table? I consider myself a good Java programmer, and I've never heard of such a thing, so how would the people here who know less about Java know?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Note how that is a package specific to your university and nobody would really know it.
So a better question to ask is, "Is there support for finite state machines in C++?"
To which the answer is: The language itself has no specific support for FSMs. But if you do a search for C++ and fsm on Google, several libraries and generators pop up. Also, the book "C++ Template Metaprogramming" by Abrahams and Gurtovoy demonstrates how you could write an FSM generator in C++.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law