The std::setbase (int base) function is a stream manipulator function which sets the stream's basefield to octal, decimal or hexadecimal depending on the value of the baseargument.
Example usage:
int n = 42;
std::cout << std::setbase (16) << n << std::endl;
The output would be:
2a
When applied to an output stream, integer values will be inserted in the specified format. When applied to an input stream, integers extracted from the stream will be expected to be in the specified format.
Note that std::setbase (base) behaves exactly the same as std::setf (which, ios_base::basefield), with whichbeing:
std::oct, if base is 8
std::dec, if base is 10
std::hex, if base is 16
As such, std::setbase provides a shorthand alternative to the more verbose std::setf manipulator.
How the turbo c plus plus use what in the computer.
just as you do it in C.
Only if you have a C++ compiler.
depends what you use it for. c++ = object oriented c = not object oriented
Use "typedef" : both in C and C++.
To use C++ in Netbeans you will need a C++ compiler.
Sure.
Programming language.
Use the C++ getline() function from the standard library.
In C and in C++, the ++ operator means to increment. C++ was intended to be the next version, i.e. the incremental next step, of C, hence the use of the ++ operator.
If you're an experienced C++-programmer, they it is easy to use, even if you are not making an OS.
There is no "power" operator in C or C++. You need to the use the math library function pow().