Q&A Discussions
How to develop a game
-2 Votes
4 Answers#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 AnswersPlz answer?
1 Vote
2 AnswersWher is mistake?
0 Votes
5 AnswersHot today
Time up code for data revision
0 Votes
Web vs python
1 Votes
Best Python Calculator Code
1 Votes
I want to learn why this error occurs in "while loop" function of Pythone.Can someone explain to me?
1 Votes
Animation
1 Votes
While or for loop
0 Votes
how to import in pygame
0 Votes