The.to string() function of std::bitset returns a std::string containing a binary text representation with leading-zero padding.
Use std::bitset32> to get 32-character strings from 32-bit integers, or std::bitset32> to get 32-character strings from 32-bit integers.
#include <iostream>
#include <bitset>
int main()
{
...READ MORE
Jun 10, 2022
in C++
by
Damon
• 4,960 points
•
1,432 views