Q&A Discussões
How to develop a game
-2 Votos
4 RespostasCout__x
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 RespostasPlz answer?
1 Voto
2 RespostasWher is mistake?
0 Voto
5 RespostasQuente hoje
C#
0 Votes
Blockchain Development
0 Votes
Audio adding
1 Votes
%
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
Software developer
0 Votes