Обсуждения
Program Language
1 голос
3 ответовWord counter
0 голосов
1 ответhtml and css
0 голосов
1 ответList of all Programming Websites!
2 голосов
1 ответcan 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 голосов
3 ответовnew horizons
2 голосов
2 ответовIn 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 голос
2 ответовCentering Issues
1 голос
2 ответовHey you ! Yes , you!
0 голосов
3 ответовChallenge 😀
1 голос
2 ответовWhat is the output of this C code?
0 голосов
2 ответовPlease suggest me
-2 голосов
2 ответовFatal error
0 голосов
1 ответАктуальное сегодня
C pointers
2 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes