Dyskusje Q&A
[SOLVED]Explain the output?
8 głosów
5 odpowiedziPlease... Explain...
0 głosów
2 odpowiedziwhy is it giving n??
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 explain output?
0 głosów
2 odpowiedziPlease Helpp
1 Głos
1 OdpowiedźC#.net datatype
0 głosów
1 OdpowiedźPopularne dzisiaj
How create a new language ?
1 Votes
Beginner question
0 Votes
I need help to solve this
0 Votes
How To Enable Disable Divs?
0 Votes
Project
0 Votes