Discussions Q&R
How to develop a game
-2 Votes
4 RéponsesCout__x
0 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éponsesPlz answer?
1 Vote
2 RéponsesWher is mistake?
0 Vote
5 RéponsesAujourd'hui en vedette
Ai generated practices
1 Votes
Where did mess up....
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Advertising in Sololearn
0 Votes
Solving coding challenges
0 Votes
Hi who can hel me please
0 Votes