F&A Diskussionen
Print() or return()?
1 Stimme
2 Antworten#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 AntwortenDef не печатается без принт
0 Stimmen
1 AntwortWhat is wrong here plis help
-1 Stimme
1 Antwortwhy this code is not working
0 Stimmen
1 AntwortFunctions in programming
1 Stimme
1 AntwortРазжуйте модуль "методы"
0 Stimmen
3 AntwortenC#Love Chat-6
4 Stimmen
6 Antwortencan someone please explain why this code keeps telling me complication error instead of outputting the value of speed.
#include <iostream>
using namespace std;
class myClass {
public:
void setcarspeed (int a){
speed=a;
}
int getcarspeed(){
return speed;
}
private:
int speed;
};
int main() {
myClass obj;
obj.setcarspeed (40);
cout<<obj.getcarspeed ;
return 0;
}
2 Stimmen
3 AntwortenHeute heiß
SQL
3 Votes
JAVA PROGRAMMING
2 Votes
HTML/CSS questions
0 Votes
What Does Pseudo Elements Mean.
2 Votes
IMAGE
0 Votes
Html
1 Votes