Обсуждения
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 ответовАктуальное сегодня
Which is the error in this code
1 Votes
Control Flow
2 Votes
Animations
2 Votes
How to use the get() method
2 Votes
Game Dev Path
1 Votes
So this what I'm trying to solve
2 Votes
How to get account back?
1 Votes
PHP Tutorial Idea
1 Votes
Problem whit Javascript
1 Votes