F&A Diskussionen
Word counter
0 Stimmen
1 Antworthtml and css
0 Stimmen
1 AntwortList of all Programming Websites!
2 Stimmen
1 Antwortcan 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 Antwortennew horizons
2 Stimmen
2 AntwortenIn the short code below, I declared an array of five elements. But I'm getting confused on how to use it in a while loop. My main question is , if the user inputs a userchoice1 value that is less than 1, I want the code to keep looping until the user inputs a number that is not less than 1. But I don't know if the 7th line (userchoice1 [x]++) shows the right way to loop it.
1 Stimme
2 AntwortenCentering Issues
1 Stimme
2 AntwortenHey you ! Yes , you!
0 Stimmen
3 AntwortenChallenge 😀
1 Stimme
2 AntwortenPlease suggest me
-2 Stimmen
2 AntwortenFatal error
0 Stimmen
1 AntwortHeute heiß
HTML/CSS questions
1 Votes
Find courses
0 Votes
Certificate Problem
0 Votes
How to learn css and html
0 Votes
C pointers
1 Votes
what the hell is going on this lessons cause i cant undrstand anything on any of the lessons
0 Votes
About progress
0 Votes