// Sample code to illustrate I/O using iostream into 8-bit int. v. 11/13/00 // // Problem is that some integer values must be 8-bit entities // (to be correct size for data packets) so are declared "char" // in include files. This code illustrates how to use iostream // to get int representations (so that arithmetic can be done) // into variables with data type char. using namespace std; #include #include "/home/cs350/term.projects/include.files/guidance_state.h" int main() { struct guidance_state gs; int i; cin >> i; gs.re_status = i; gs.re_status++; cout << int(gs.re_status) << endl; }