using namespace std;
int main()
{
double long price;
cout<<"Enter the price:\n";
cin>>get_money(price);
if(cin.fail())
{ cout<<"ERROR reading the price. \n"<<endl;}
else
{
cout<<"The price entered is: ";
cout<<price<<endl;
}
when i tried this code compiler says get_money()
not declared.
I am using CodeBlocks v10.11.Plz tell me the solution.
}
1) you do not have price variable declared.
2) you might have C++11 support not turned on.
3) If you are using GCC with Windows, it does not have support for time/money IO.