Q&A Discussões
Why i got error.
2 Votos
1 RespostaWhere is the error???
0 Voto
4 RespostasIf statement
0 Voto
5 RespostasHTML & CSS problem
1 Voto
2 Respostaswtf?)
-1 Voto
1 Respostaproblem with asterisk
1 Voto
1 Respostacan 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 RespostasWhy not normal I/O
0 Voto
1 RespostaQuente hoje
Pig Latin
0 Votes
Someone can help me
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
0 Votes