Обсуждения
std::string
1 голос
3 ответовConvering char to std::string
3 голосов
7 ответовchar* vs std::string
0 голосов
1 ответ#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 голосов
5 ответовАктуальное сегодня
Mobile number and similarity
1 Votes
Loops and conditions
2 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Coding issue
2 Votes
Alguém Português por aqui?
0 Votes
Hardware of computer
3 Votes
Any coding competitions?
1 Votes