Please write a C++ program that prompts the user to input the radius of a circle, calculates the area of the circle by using the formula pi * r^2, and then outputs the result. The program should use at least one function to perform the calculation and should display the result to two decimal places. Additionally, the program should include appropriate comments, variable declarations, and error handling for invalid user input.
This prompt doesn't seem malicious.