SWEngineer,
This is a syntax problem with Digital Mars.
I am currently using Bloodshed's IDE and compiler Dev-C++, and your code ran fine (with a few substitutions)
I would recommend switching to a different compiler, but if you would rather use Digital Mars, refer to its documentation.
Dev-C++ is an IDE with a compiler, so its much easier to use, and has many features.