We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
example.cpp
1 parent a380ba8 commit 1208eb9Copy full SHA for 1208eb9
example.cpp
@@ -13,6 +13,7 @@ g++ -std=c++11 ./example.cpp ./src/*.cpp -o example.out
13
*
14
*/
15
16
+#include <iostream> // std::cout
17
#include "./src/xstate.cpp"
18
19
int main() {
@@ -54,13 +55,13 @@ int main() {
54
55
xs::Interpreter *toggleMachine = xs::interpret(machine)
56
->logInfo()
57
->onStart([]() {
- printf("let's go!\n");
58
+ std::cout << "let's go!\n";
59
})
60
->onTransition([](xs::Interpreter *self) {
61
self->logInfo();
62
63
->onStop([]() {
- printf("oh no we stopped c:\n");
64
+ std::cout << "oh no we stopped c:\n";
65
66
->start();
67
0 commit comments