Discussões Q&A
#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 RespostasPopular hoje
debate which is better
5 Votes
Cource
1 Votes
Text editor
0 Votes
Arduino
2 Votes
Debugging issue?
0 Votes
how to view only application
0 Votes
Scraping
0 Votes