Q&A Discussões
Please... Explain...
0 Voto
2 Respostas#include <iostream>
#include <bitset>
int main()
{
int myDecimalNumber;
std::cin >> myDecimalNumber;
std::string binary = std::bitset<8>(myDecimalNumber).to_string(); //to binary
std::cout<<binary<<"\n";
unsigned long decimal = std::bitset<8>(binary).to_long();
std::cout<<decimal<<"\n";
return 0;
}
2 Votos
5 Respostaswhy is it giving n??
0 Voto
2 RespostasPlz explain output?
0 Voto
2 RespostasPlease Helpp
1 Voto
1 RespostaC#.net datatype
0 Voto
1 RespostaQuente hoje
HTML/CSS questions
0 Votes
Find courses
0 Votes
Certificate Problem
0 Votes
How to learn css and html
0 Votes
C pointers
1 Votes
what the hell is going on this lessons cause i cant undrstand anything on any of the lessons
0 Votes
About progress
0 Votes