Q&A Discussions
end of function?
1 Vote
2 Answers🔴Help plZ🔴
-3 Votes
15 AnswersParseint()
0 Votes
7 Answerscan 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 AnswersC# error. Please help me.
0 Votes
1 AnswerHot today
Is this realistic enough?
2 Votes
Need friends
0 Votes
Web Development
0 Votes
Please complete this code.
0 Votes
Cybersecurity techies
2 Votes