I wrote a program in C, not C++, using Dev C++. I noticed later that the extension is .cpp and not .c. This program is for a class and it needs to be in C, not C++. So I copy all the code and paste it into a new .c file. Except now when I go to compile it gives me all kinds of errors. The first error is on the first line and it is a // comment with my name. It says "syntax error before '/' token." It also lists all kinda of errors in stdio.h, stdlib.h, and string.h.