Lines Matching defs:state
45 int state = 0;53 switch(state) {55 if (c == pattern[0]) state = 1;56 else state = 0;60 if (c == pattern[1]) state = 2;61 else state = 0;65 if (c == pattern[2]) state = 3;66 else state = 0;72 state = 0;75 cout << "Error: FSM in bad state." << endl;