Sesiones de PyR
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 Votos
3 RespuestasEn tendencia hoy
I tried copying one of my older codes from the Playground into Wing IDE, and it returned a TabError.
1 Votes
Error here
1 Votes
BIT SHIFTING OPERATION.
1 Votes
What do you think
1 Votes
Ascii
1 Votes