Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
std::string
1 Voto
3 Respostaschar* vs std::string
0 Voto
1 Resposta#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 RespostasQuente hoje
How to cast in python : 2
2 Votes
Polyalphabetic Cipher
0 Votes
Why didn't I get it?
1 Votes
Adding a photo
1 Votes
Access deny problem
1 Votes
BOTSS
0 Votes
Help
0 Votes