Обсуждения
How to develop a game
-2 голосов
4 ответов#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 ответовPlz answer?
1 голос
2 ответовWher is mistake?
0 голосов
5 ответовАктуальное сегодня
Audio adding
1 Votes
playground input
0 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
Software developer
0 Votes
TIPS From Veterans
1 Votes