Dyskusje Q&A
problem with asterisk
1 Głos
1 Odpowiedź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 głosów
3 odpowiedziWhy not normal I/O
0 głosów
1 OdpowiedźSolo Learns Code Playground
2 głosów
2 odpowiedziBackground-image Quality?
0 głosów
2 odpowiedziI need help fixing this code
0 głosów
2 odpowiedziTime Limit exceeded
0 głosów
2 odpowiedziConnecting html with php
0 głosów
2 odpowiedziwhat 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 głosów
5 odpowiedziCode problems D: Help?
0 głosów
2 odpowiedziTransparent Problems
0 głosów
1 Odpowiedźerro no sistema de login
0 głosów
2 odpowiedzifind the misstake plz......
0 głosów
1 OdpowiedźWhy is there error?
0 głosów
2 odpowiedziIndetationError
0 głosów
1 OdpowiedźNot Getting Proper Output
0 głosów
1 OdpowiedźHelp with my first program.
0 głosów
1 OdpowiedźPopularne dzisiaj
OOP python questions
1 Votes
What's wrong with my code?
1 Votes
What is a web browser intension?
1 Votes
Python loops
1 Votes
Web page
1 Votes
Percobaan
0 Votes
Mentors
0 Votes
Codding lern
0 Votes