Discussions Q&R
end of function?
1 Vote
2 Réponses🔴Help plZ🔴
-3 Votes
15 RéponsesParseint()
0 Vote
7 Réponsescan 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 Votes
3 RéponsesЗадание
3 Votes
7 RéponsesAujourd'hui en vedette
I can't see my activity
5 Votes
Error in python
1 Votes
Can anyone help me?
1 Votes
High paying job?
2 Votes