Dyskusje Q&A
How to develop a game
-2 głosów
4 odpowiedziCout__x
0 głosów
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 odpowiedziPlz answer?
1 Głos
2 odpowiedziWher is mistake?
0 głosów
5 odpowiedziPopularne dzisiaj
DSA doubt
1 Votes
Vote Code
1 Votes
Input errors (python)
1 Votes
Without degree job
0 Votes
Data structure using C
0 Votes