Thank you yea I found a couple other errors too but got it working.
In my book for school it says #include <stdafx.h>
However I got tan error saying not found. When I switched it to #include <iostream> it worked fine. What is stdafx.h and why does my college book use that?