I have no idea what im doing wrong, cin.get() used to stop my programs but for somereason they nolonger do. Here is an example of when the cin.get() hasnt been stopping my code :
#include <iostream>
using namespace std;
int main() {
int x;
int y;
int box[2][2];
cout<<"Please enter a number between 1 and 2\n";
cin>>x;
cout<<"Please enter another number between 1 and 2\n";
cin>>y;
box[0][0] = x*y;
box[0][1] = x/y;
box[1][1] = x+y;
cout<<box[0][0]<<" "<<box[0][1]<<" "<<box[1][1];
cin.get();
}
i know its simple but after it runs it just quits by its self.