• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

Выгодно ли использовать <bitset>
binarybitsetc++
0 Votes
2 Answers
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 Vote
1 Answer
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 Votes
5 Answers
18th Jun 2016, 10:43 PM
Utpal Kumar
Utpal Kumar - avatar
Hot today
Need suggestions
0 Votes
Hello can anyone help me to learn gdscript
0 Votes
Best code for creating games?
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
Need suggestions to learn AI and ML
1 Votes
progaming
1 Votes
Java full stack
0 Votes
Anyone Learning Godot?
1 Votes
Duration of heart refilling
0 Votes
hello world i need help
1 Votes