Try a W3Schools C++ Exercise
here