> cout<<"Error: myString is not an integer\n"; //i am afriad u'd better use cerr which is: 1. standard function to do so; 2. not be affected by re-direction or some other accidents yuan