F&A Diskussionen
problem with asterisk
1 Stimme
1 Antwortcan 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 Stimmen
3 AntwortenWhy not normal I/O
0 Stimmen
1 AntwortSolo Learns Code Playground
2 Stimmen
2 AntwortenBackground-image Quality?
0 Stimmen
2 AntwortenWhy is this code not running ???
0 Stimmen
2 AntwortenI need help fixing this code
0 Stimmen
2 AntwortenWhy won't my Jquery work?
1 Stimme
1 AntwortTime Limit exceeded
0 Stimmen
2 AntwortenConnecting html with php
0 Stimmen
2 Antwortenwhat 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 Stimmen
5 AntwortenCode problems D: Help?
0 Stimmen
2 AntwortenTransparent Problems
0 Stimmen
1 AntwortWhat is the string used for?
1 Stimme
2 AntwortenShould challenges be modified?
3 Stimmen
2 Antwortenerro no sistema de login
0 Stimmen
2 Antworten[BUG] C# opens as web :(
1 Stimme
1 Antwortfind the misstake plz......
0 Stimmen
1 AntwortWhy is there error?
0 Stimmen
2 AntwortenIndetationError
0 Stimmen
1 AntwortNot Getting Proper Output
0 Stimmen
1 AntwortHelp with my first program.
0 Stimmen
1 AntwortHeute heiß
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
Postgrrsql and python
0 Votes