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
C pointers
2 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes