It was pointed out by many people that getting a new compiler was pretty much required to remain sane.
So, I downloaded code::blocks.
I hadn't actually installed it and was working on a little project to manipulate binary numbers, like convert to decimal, do bitwise operations etc...
here's what happened in DevC++
//some stuff #include<cmath> //some more stuff int bit_value = pow(2, position); //some more stuff
generated the following error:
58 C:\working\bin2dec.cpp call of overloaded `pow(int, int&)' is ambiguous
hmmm, odd that, i wonder what happens if i change it a bit to
//some stuff #include<math.h> //some more stuff int bit_value = pow(2, position); //some more stuff
generated the following warning:
58 C:\working\bin2dec.cpp [Warning] converting to `int' from `double'
So I installed code::blocks, compiled without warning and program ran fine.
No more DevC++ for this cat.
Stay hip!

New Topic/Question
Reply




MultiQuote




|