F&A Diskussionen
[SOLVED]Explain the output?
8 Stimmen
5 AntwortenPlease... Explain...
0 Stimmen
2 Antwortenwhy is it giving n??
0 Stimmen
2 Antworten#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 AntwortenPlz explain output?
0 Stimmen
2 AntwortenPlease Helpp
1 Stimme
1 AntwortCÁLCULO DE FATORIAL E VARIAVEIS
0 Stimmen
4 AntwortenC#.net datatype
0 Stimmen
1 AntwortHeute heiß
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