Обсуждения
problem with asterisk
1 голос
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 ответовWhy not normal I/O
0 голосов
1 ответSolo Learns Code Playground
2 голосов
2 ответовBackground-image Quality?
0 голосов
2 ответовWhy is this code not running ???
0 голосов
2 ответовI need help fixing this code
0 голосов
2 ответовWhy won't my Jquery work?
1 голос
1 ответTime Limit exceeded
0 голосов
2 ответовConnecting html with php
0 голосов
2 ответовwhat will be output??
#include <iostream>
using namespace std;
int main(int a)
{
cout << a << "\n";
return 0;
}
int main(char *a)
{
cout << a << endl;
return 0;
}
int main(int a, int b)
{
cout << a << " " << b;
return 0;
}
int main()
{
main(3);
main("Subodh");
main(9, 6);
return 0;
}
if output is compilation compilation error then how can we overload "main" function in C++
0 голосов
5 ответовCode problems D: Help?
0 голосов
2 ответовTransparent Problems
0 голосов
1 ответShould challenges be modified?
3 голосов
2 ответовerro no sistema de login
0 голосов
2 ответов[BUG] C# opens as web :(
1 голос
1 ответfind the misstake plz......
0 голосов
1 ответWhy is there error?
0 голосов
2 ответовIndetationError
0 голосов
1 ответNot Getting Proper Output
0 голосов
1 ответHelp with my first program.
0 голосов
1 ответАктуальное сегодня
Thread local : global vs local
0 Votes
Postgrrsql and python
0 Votes
Codding lern
0 Votes
Data Analysis Course
1 Votes
Is there LUA?
0 Votes
Web vs python
0 Votes
tabla empleados sql
0 Votes