Problem with current compilers

Hi, im new to programming and im having trouble finding a suitable compiler for vista, i started using dev-c++ but things like the #include<math.h> wouldnt work right(i would put in something like cout << sqrt(4); and it would return a problem saying that sqrt wasnt a stated variable). I then started using Code::Blocks which worked perfectly but it returned an error with system("PAUSE") saying that system was not declared in this scope. so when i ran the program file( or the application file) individually, it just exited when it was finished.
Can anyone help me with my problems?
See http://www.cplusplus.com/forum/beginner/1988/ . This provides alternatives to system("pause"). In any case, I think you can use the system() call if you #include <cstdlib>, but I'm not sure on this one.
wow cant believe i didnt notice that #include <cstdlib> wasnt there when i started the console editor, thanks:)
Topic archived. No new replies allowed.