Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI

Q&A Discussies

Meaning if std::cin and std::cout ?
cc++programming
3 Stemmen
5 Antwoorden
8th Jan 2017, 3:44 PM
Fahmeen Mazhar
Fahmeen Mazhar - avatar
How to anticipate single or multiple input failure(s) when input(s) are read in using C++ std::cin and extraction operator >>
c++error-handlinginput-output
4 Stemmen
2 Antwoorden
27th Mar 2023, 6:25 AM
Ipang
Why is my code not asking for an input???
c++inputiostreamstd::cin
0 Stemmen
3 Antwoorden
16th Aug 2021, 2:09 PM
Rishi
Rishi - 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 Stemmen
5 Antwoorden
18th Jun 2016, 10:43 PM
Utpal Kumar
Utpal Kumar - avatar
Populair vandaag
Guys I don't know anything about cooding who can help me pls
1 Votes
Why can’t I use double “ in python?
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
You’re free to give me your advice! 🚨
1 Votes
Decorators in python.
2 Votes
Salut tout le monde
1 Votes
Please click me
0 Votes