Jarred,
There are a few simple syntax mistakes you've done - here is a corrected
version (assuming that your system call is actually working fine) :
#include <iostream.h>
#include <stdlib.h>
int main() {
int x = 5;
int y = 7;
cout << "\n";
cout << x + y;
cout << "\n";
// or you could have : cout << "\n" << x + y " " << "\n";
// which is very much like : cout << endl << x + y " " << endl;
system("PAUSE");
return 0;
}
|