hi, i am learnign c++ but the cin function isnt working?
i am using eclipse with minigw
cout works but not cin
when i enter a value on the console the program terminates
here is my code:
#include <iostream>
#include <stdio.h>
using namespace std;
int main ()
{
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "The value you entered is " << i;
cout << " and its double is " << i*2 << ".\n";
return 0;
}