What happens when you attempt to compile and run the following code?
#include
using namespace std;
class complex{
double re;
double im;
public:
complex() : re(0),im(0) {}
complex(double x) { re=x,im=x;};
complex(double x,double y) { re=x,im=y;}
void print() { cout << re << " " << im;}
};
int main(){
complex c1(1,2);
c1.print();
return 0;
}
Cornell
1 months agoWhitney
1 months agoJeannetta
1 months agoJodi
17 days agoParis
21 days agoMitzie
24 days agoNu
1 months agoFrancoise
1 months agoBreana
20 days agoHyman
3 months agoJuliana
3 months agoHyman
3 months ago