+ 3
How to output nomber in binary?
As example: I have to write pragram wich shows logical ops of c++. Have to be input 2 numbers for And, Or, Xor and Not c++ ops. And have to be user input of range of binary nombers wich will be outputed. So? I found std::bitset<range>(x), where range have to be only nomber, but nor var, and cant be asined to any var like z = bitset<var1>(var2). Only like "cout <<bitset<32>(x);". So how to make it with bit range and asinement to any var.
1 Answer
+ 3
Check guides or research templates.