I'm not sure I understand your problem correctly, but it looks like you have a lot more headers than you need. Try with just:
or if your compiler isn't new enough you would have to use iostream.h and stdlib.h.Code:#include <iostream> #include <cstdlib> #include <windows.h> using namespace std;
I might just not have noticed, but I think those are the only headers you need for the functions and classes you are using.