These don't work.

When the program displays
    
    
    Enter number value:
    

it should stay there until I type a number and hit <enter> and then proceed. 
For both cases shown the program just falls through.
    
    
    [jzakiya@jabari-pc nim]$ ./myprogram
    Enter number value:
    Error: unhandled exception: Unknown IO Error [IOError]
    

Essentially, I want to do the equivalent C++ code below to enter nunbers.
    
    
    cout << "Enter number value: ";
    uint64 val;
    cin >> val;
    

Reply via email to