Kursy
Zaloguj sięZacznij uczyć się AI
Kursy
Zaloguj sięZacznij uczyć się AI

Dyskusje Q&A

Meaning if std::cin and std::cout ?
cc++programming
3 głosów
5 odpowiedzi
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 głosów
2 odpowiedzi
27th Mar 2023, 6:25 AM
Ipang
Why is my code not asking for an input???
c++inputiostreamstd::cin
0 głosów
3 odpowiedzi
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 głosów
5 odpowiedzi
18th Jun 2016, 10:43 PM
Utpal Kumar
Utpal Kumar - avatar
Popularne dzisiaj
I'm about to make a complex calculator in python
1 Votes
why is python community is too small in sololearn?
1 Votes
Audio adding
1 Votes
The best python learning app ????
2 Votes
C#
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
What is problem in this code
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes