Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ print byte as bit

#include <bitset>
...

char a = -58;    
std::bitset<8> x(a);
std::cout << x << '
';

short c = -315;
std::bitset<16> y(c);
std::cout << y << '
';
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ vector add only unique elements 
Cpp :: c++ print current time 
Cpp :: addition without arithmetic operators c++ 
Cpp :: quadratic problem solution c++ 
Cpp :: c++ vector element search 
Cpp :: how to delete a certain amount of numbers of the same value in multiset c++ 
Cpp :: c++ check if string contains non alphanumeric 
Cpp :: c++ loop through array 
Cpp :: default access modifier in c++ in struct 
Cpp :: removing a character from a string in c++ 
Cpp :: string to integer convert c++ 
Cpp :: c++ user input 
Cpp :: c++ string remove first character 
Cpp :: online cpp to exe converter 
Cpp :: find in set of pairs using first value cpp 
Cpp :: c++ swapping two numbers 
Cpp :: how to copy one vector to another 
Cpp :: c++ char to uppercase 
Cpp :: c++ sleep 
Cpp :: c++ constructors 
Cpp :: vector of strings initialization c++ 
Cpp :: how to make a list in c++ 
Cpp :: c++ random number within range 
Cpp :: find primes in a range in c++ 
Cpp :: c++ programming language 
Cpp :: change int to string c++ 
Cpp :: remove decimal c++ 
Cpp :: c++ splitstring example 
Cpp :: c++ vector initialization 
Cpp :: string to upper c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =