对象成员求救
//#include <iostream>
#include <stdlib.h>
#include "Line.h"
using namespace std;
int main(void)
{
Line *p=new Line(1,2,3,4);
p->printInfo();
delete p;
p=NULL;
return 0;
}
//#include <iostream>
#include <stdlib.h>
#include "Line.h"
using namespace std;
int main(void)
{
Line *p=new Line(1,2,3,4);
p->printInfo();
delete p;
p=NULL;
return 0;
}
2017-05-16
举报