It stays the same, however void main() is incorrect.
You should drop the course if possible, as your professor is clearly incompetent.
If you are interested in learning C++, you should buy yourself a book such as the C++ Primer.
the complier that we must use for the class says that it has to be in void form but the complier i have in my computer tells me that the int main form i have is correct.
Yours is correct. The one you're using at university is probably horribly outdated, as is your course.
Ever since the first C++ standard which was published in 1998, int main() is the only correct form - before the standard, every compiler vendor essentially did what they wanted, some allowed or even required void main().
Dev-Cpp is an IDE, not a compiler. And I don't think it's that old... of course its outdated, but the MinGW version it ships with is from 2003 or so. They are probably using some ancient borland C++ or something the like.
At OP: You can officially tell your prof to get another job. There are things that are forgivable, not abiding to the standards over ten years after they are out is not. I mean, it's not even deprecated - it's ILLEGAL.