hmm... that's strange. Try this:
Code:
#include <iostream>
#include <ios>
#include <limits>
int main()
{
int number1;
int number2;
int sum;
std::cout << "Enter first integer: ";
std::cin >> number1;
std::cout << "Enter second integer: ";
std::cin >> number2;
sum = number1 + number2;
std::cout << "Sum is " << sum << std::endl;
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.get();
return 0;
}
Generally, I think it is usually better to just run the program from the command line.