实验Complex
摘要:#include #include using namespace std; class Complex { public: Complex (double xx=0,double yy=0):x(xx),y(yy){} Complex (Complex &c):x(c.x),y(c.y){} void show() { ...
阅读全文
posted @
2019-03-31 13:56
happy-every-day
阅读(121)
推荐(0)
实验二
摘要:#include using namespace std; struct Complex { double real; double imaginary; }; int add(int x,int y) { int s; s=x+y; cout>a>>b; add(a,b); cin>>c>>d; add(c,d); cin...
阅读全文
posted @
2019-03-24 09:56
happy-every-day
阅读(91)
推荐(0)
实验一
摘要:2-28-(1)#include using namespace std;int main() { char n; cout>n; while (n!='Q') { if (n=='A') cout>n; } return 0; } 2-28-(2)#include using namespa...
阅读全文
posted @
2019-03-15 17:04
happy-every-day
阅读(118)
推荐(0)