I've just started learning C++, and I'm having some problems running my programs. Even when I just copy the source code from my C++ tutorial book:
//-----------------------------------------------------
//
// add.cpp
//
// Program for adding two whole numbers
//
#include <iostream>
using namespace std;
int main ()
{
int number1;
int number2;
int sum;
cout << "Write two whole numbers with a space between them: ";
cin >> tall1 >> tall2;
sum = tall1 + tall2;
cout << "The sum is: " << sum << endl;
return 0;
} // main
The program starts, and lets me type in two numbers, but when I hit 'enter' it shuts down and disappears.
(I use "Dev-C++" compiler)