+ 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.

16th Jan 2017, 6:31 PM
Denis Zinkov
Denis Zinkov - avatar
1 Respuesta
+ 3
Check guides or research templates.
19th Jan 2017, 8:24 AM
Mark Foxx
Mark Foxx - avatar