this is a simple example of a problem I have been having with differing programs, i am using linux ubuntu 9.10 and codeblocks 8.02 .
this is the code
#include <iostream>
using namespace std;
int main()
{
int hiya;
cout<<"hello world \n";
cin.get();
cout<<"enter a number \n";
cin>>hiya;
cout<<"you entered \n"<< hiya;
cin.get();
}
it compiles but show an error message "warning GDB: Failed to set controlling terminal: operation not permitted"
then the program runs
when it gets to the last cin instead of waiting for some input it exits