I am working on my first C++ program for school. For some reason I am getting the following error when I try to compile it:
`truncate\' undeclared (first use
You need to declare functions before you use them. Moving the definitions of truncate and round above the main function should do the trick.
truncate
round
main