Discussions Q&R
What is hexadecimal
3 Votes
2 RéponsesOctal system
2 Votes
1 RéponseparseInt() method
1 Vote
2 RéponsesJava
0 Vote
4 Réponseswhy is it <=36?
1 Vote
2 Réponses#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 Votes
5 RéponsesAujourd'hui en vedette
New code
1 Votes
Clean Code
3 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Hello Everyone
0 Votes