User forums > Using Code::Blocks

Pow and Math.h

<< < (2/3) > >>

ultrabot90:
thx! ^_^

killerbot:
and important !!!

Your code is actually not correct. You have to specify to use the std namespace (always do this in cpp files, never headers).

You can :

a) using namespace std;

or specify just what you need :
b)
using std::cout;
using std::cin;
using std::pow;

ultrabot90:
I think I did type in the "using namespace std;" line...
Another problem is that C::B always returns a "Warning : No newline at end of file."
Its there in any program I do. Even the previous one.
Thats the entire lot of problems, I think.

killerbot:
it's no CB that's bugging you, it's the compiler.
A lot of compilers want all files to end with an empty line.

Just make a (good) habit out of it ;-)

ultrabot90:
oO
Ok...That did the trick.
Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version