Sesiones de PyR
html and css
0 Votos
1 Respuestanew horizons
2 Votos
2 Respuestascan 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 Votos
3 RespuestasIn 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 Voto
2 RespuestasCentering Issues
1 Voto
2 RespuestasHey you ! Yes , you!
0 Votos
3 RespuestasChallenge 😀
1 Voto
2 RespuestasPlease suggest me
-2 Votos
2 RespuestasConsider
0 Votos
1 RespuestaFatal error
0 Votos
1 RespuestaWeb project execution?
0 Votos
1 RespuestaEn tendencia hoy
What's wrong in my code?
4 Votes
App Development
1 Votes
GUI-Based Python code in Webpage
3 Votes
My Missing Courses
1 Votes
Are '\0' and NULL the same?
1 Votes
cyber security
0 Votes