F&A Diskussionen
#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 Stimmen
5 Antwortenhello guys? how are you. i am zeeshan ali from pakistan. i have been in touch with this app for a very long long time. i have found so many friends awesome.. and we do combine study over the internet. anyone of you is interested then join us on facebook by searching this number 03033951255
0 Stimmen
4 AntwortenEnum,private,finale
4 Stimmen
4 AntwortenCÁLCULO DE FATORIAL E VARIAVEIS
0 Stimmen
4 AntwortenHeute heiß
Learn python
2 Votes
Help for study
1 Votes
Spying on me
1 Votes
Where's PHP and Ruby courses?
1 Votes
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
Not video
0 Votes
Not image in the page
0 Votes