hello everyone!
i'm new in studying c++ and i'm a bit geting confused :(
#include<iostream>
#include<istream>
using namespace std;
int main()
{
int b;
cout << "enter b value:";
cin >> b;
cout << "the value of b is:" << b;
return(getchar());
}
why doesn't it execute??
i looked in the previous archieves related problems and tried "cin.get(); 2times" and it worked.could someone explain the reason of using this statement 2 times? ,
and thank you everyone for the reply,i'll appreciate ur concern