View Single Post
Old Oct 27th, 2005, 4:30 PM   #21
D-Ferg27
Programmer
 
D-Ferg27's Avatar
 
Join Date: Oct 2005
Posts: 49
Rep Power: 0 D-Ferg27 is on a distinguished road
ok so this is my code now.

#include <iostream>
using namespace std;
int main()

{
    int i ;
    cout << "please enter an integer value: " ;
    cin >> i;
    cout << " \n the value you entered is" << i;
    cout << "and its double is...\n ";
    cout << i * 2; 
    
    cin.get();
    return 1;
}

it compiles and runs now but now im back to square one. now when the user puts in a value it does nothing. And when i hit enter it just flashes somthing then exits.
D-Ferg27 is offline   Reply With Quote