Hello I have been programming for a few days now and I have runned inn to a little problem. the cin.get(); won't pause my program.
I have tried to use cin.ignore(); above the cin.get() to make it pause but with no sucsess
i have also tried to usesystem("pause");
the compiler I use is called "Microsoft Visual c++ 2010"
Code:#include "stdafx.h" #include <iostream> using namespace std; int main () { cout << "Hello world\n"; cout << "Here is 5: " << 5 << "\n"; cout << " the manipulator endl writes a new line to the screen." << endl; cout << " Here is a very big number:\t" << 70000 << endl; cout << " Here is the sum of 8 and 5:\t" << 8+5 << endl; cout << " Here's a fraction:t\t" << (float) 5/8 << endl; cout << " and a very very big number:\t" << (double) 700 * 700 << endl; cout << "Don't forget to replace Jesse Liberty with your name...\n"; cout << "shacko is a C++ programmer!\n"; cin.get(); return 0 }