F&A Diskussionen
std::string
1 Stimme
3 AntwortenConvering char to std::string
3 Stimmen
7 Antwortenchar* vs std::string
0 Stimmen
1 Antwort#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;
}
2 Stimmen
5 AntwortenHeute heiß
overloading operators << >>
1 Votes
how does this code function?
2 Votes
.
1 Votes
My question is about python?
0 Votes
.
0 Votes
Where is my badge?
1 Votes
i need to learn Coding
0 Votes
Quiz duel
0 Votes
Web
0 Votes