Cours
Se connecterCommencer à apprendre l'IA
Cours
Se connecterCommencer à apprendre l'IA

Discussions Q&R

Выгодно ли использовать <bitset>
binarybitsetc++
0 Vote
2 Réponses
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 Réponse
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 Réponses
18th Jun 2016, 10:43 PM
Utpal Kumar
Utpal Kumar - avatar
Aujourd'hui en vedette
CAN ANYONE SUGGEST ME AS A STUDENT WITH A PASSION OF CODING WHICH CODING LANGUAGE SHOULD I CHOOSE AS BEGGINER
3 Votes
I can't see my activity
2 Votes
Hearts refill
2 Votes
[SOLVED] What's wrong in my code?
2 Votes
I can't see my activity in my profile
1 Votes
Does skipping void Certificate?
2 Votes
Can anyone help me?
1 Votes
Python
3 Votes
Sololearn issue
1 Votes
Random freelancer question
0 Votes