Обсуждения
What is hexadecimal
3 голосов
2 ответовOctal system
2 голосов
1 ответparseInt() method
1 голос
2 ответовPI to more than 15 digits
0 голосов
6 ответовwhy is it <=36?
1 голос
2 ответов#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 голосов
5 ответовComo pasar de binario a decimal?
0 голосов
2 ответовHow should I solve this challenge?
4 голосов
3 ответовАктуальное сегодня
[off-topic]Where is Result??
2 Votes
I really need a tutor
1 Votes
Mentor rank
2 Votes
∞♥
2 Votes
Cpp
1 Votes
developpement
2 Votes
HTML
1 Votes