当前位置: > 设计一个复数类.从键盘输入2个复数,完成复数的加减运算,然后输出运算结果....
题目
设计一个复数类.从键盘输入2个复数,完成复数的加减运算,然后输出运算结果.
struct complex
{
x05double real;
x05double imaginary;
};
struct complex input(void)
{
}
struct complex plus(struct complex a,struct complex b)
{
}
struct complex minus(struct complex a,struct complex b)
{
}
void output(struct complex a)
{
}
int main()
{
}

提问时间:2020-12-12

答案
#include struct complex{double real;double imaginary;};struct complex input(void){struct complex num;printf("input complex number (eg.2.0+1.1i):");scanf("%lf+%lfi",&num.real,&num.imaginary);return num...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.