#include <iostream>
using namespace std;
double prompt(string input )
{
double input;
cin>>input;
return input;
}
int main()
{
double answer;
double euro = prompt("Enter the value in Euros : ");
answer=euro/1.583;
cout<<answer;
system ("Pause");
return 0;
}
i want to print “Enter the value in Euros : ” but it won’t.
and i get an error – ‘return’ : cannot convert from ‘std::string’ to ‘double’
String is called input and double is called input…. there is something wrong here.
Surely this should be something like: