Home > Back-end >  Why do I run has been an error ld returned 1 exit status
Why do I run has been an error ld returned 1 exit status

Time:10-28

#include
using namespace std;
Const double PI=3.14;
The class simplecircle {
Public:
Simplecircle (double r) {
The radius=new double (r);
}
Double getradius () {
Return * radius;
}
Simplecircle (simplecircle & amp; P) {
Double val=P.g etradius ();
The radius=new double (val);
}
~ simplecircle () {
Delete the radius.
}
Double getarea () {
Radius, return PI * (*) * (* radius);
}
Double getlen () {
Radius, return 2 * PI * (*);
}
Private:
Double * radius;
};
Int mian () {
Simplecircle a (1.2);
CoutReturn 0;
}

CodePudding user response:

Restart the or so

CodePudding user response:

The main function of the wrong
Int m 1 n () {to int m ai n () {

CodePudding user response:

Int main!!!!!! Not int mian...
  • Related