What is the difference between using system("pause") and cin.get(pause)?
Oliver told me never use system("pause").
#include<string>
#include<iostream>
int main(){
using namespace std;
string str = "My name is shridhar";
cout<<"What is your name"<<str;
char pause = 0;
cout << "Press enter to continue...";
cin.get(pause);
}