Q&A Discussions
[SOLVED]Explain the output?
8 Votes
5 AnswersPlease... Explain...
0 Votes
2 Answerswhy is it giving n??
0 Votes
2 Answers#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 Votes
5 AnswersPlz explain output?
0 Votes
2 AnswersPlease Helpp
1 Vote
1 AnswerC#.net datatype
0 Votes
1 AnswerHot today
How do we code calculator
2 Votes
I need help
1 Votes
My hearts are disappering :(
0 Votes
Pressure and tension
2 Votes
Where is code bit
0 Votes