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
Just a little advice
5 Votes
Python functions
1 Votes
beginner
0 Votes
Python Courses Order
0 Votes
How to install any pup
0 Votes
Float or integer
1 Votes
sololearn is too harsh
2 Votes
React Course
1 Votes