I am currently taking a course in C++ programming at college. I wrote the function getDoubleInput to better handle user input of a variable of type double. I would appreciate any feedback on possible flaws or ways to improve the code. Thanks!
There's no main() function because this function is meant to be called from main(). The #includes listed are the ones the function requires. You call the function from main with:
getDoubleInput(number, parameter);
where number is a variable of type double and parameter is a variable of type string.