¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
std::string
1 Voto
3 Respuestaschar* vs std::string
0 Votos
1 Respuesta#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 Votos
5 RespuestasEn tendencia hoy
How to cast in python : 2
2 Votes
Bits
5 Votes
Why didn't I get it?
1 Votes
Polyalphabetic Cipher
0 Votes
Adding a photo
1 Votes
This error is showing.
0 Votes