Q&A Discussões
What is hexadecimal
3 Votos
2 RespostasOctal system
2 Votos
1 RespostaparseInt() method
1 Voto
2 RespostasJava
0 Voto
4 Respostaswhy is it <=36?
1 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 RespostasQuente hoje
Please answer
0 Votes
Can't figure out SQL code
0 Votes
Problem in code coach
2 Votes
How does the "if" work?
0 Votes
HTML
1 Votes
Data structures and Algorithms
2 Votes