Курсы
ВойтиНачать изучение ИИ
Курсы
ВойтиНачать изучение ИИ

Обсуждения

Выгодно ли использовать <bitset>
binarybitsetc++
0 голосов
2 ответов
6th Jan 2018, 12:03 AM
Данил Кудрицкий
Данил Кудрицкий - avatar
Is it possible to get a part from bitset<8> and put it into bitset<6>
<bitset>cpp
1 голос
1 ответ
4th Jun 2018, 9:32 AM
Ixidot
Ixidot - avatar
#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; }
c++
2 голосов
5 ответов
18th Jun 2016, 10:43 PM
Utpal Kumar
Utpal Kumar - avatar
Актуальное сегодня
Excuse me, why do they always ask us to input without telling us what it is for in python.
2 Votes
Should i learn python more or HTML?
2 Votes
Quiz
0 Votes
how much time will it take to learn python OOP if i spend 1 hour everyday
0 Votes
C++ Vectors
0 Votes
Code challenge
0 Votes
Does solving a code coach actually give XPs?
2 Votes
A Little Question Here!
1 Votes
(Resolved) Error: Gcc undefined reference to sha 256 🙄🤦🏽‍♀️
1 Votes
can't understand an error
0 Votes