Dyskusje Q&A
What is hexadecimal
3 głosów
2 odpowiedziOctal system
2 głosów
1 OdpowiedźparseInt() method
1 Głos
2 odpowiedziPI to more than 15 digits
0 głosów
6 odpowiedziJava
0 głosów
4 odpowiedziwhy is it <=36?
1 Głos
2 odpowiedzi#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 głosów
5 odpowiedziPopularne dzisiaj
overloading operators << >>
1 Votes
how does this code function?
1 Votes
.
1 Votes
.
0 Votes
Wishkit alternative for android
1 Votes
Hi
0 Votes
My question is about python?
0 Votes
Issue in code
0 Votes
i need to learn Coding
0 Votes