stepen=pow(2,bBita-1-i); in this function the compiler announces error
'pow':ambiguous call to overloaded function

C++ allows different definitions of pow() based on the type of argument. your problem appears to be that you're calling them with integer arguments which is ambiguous as it allows the pow() to fit more than one version.

try casting the args as doubles: pow(2.0, (double)bBita - 1 - i); .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.