#include"stdio.h"
//编程求两个复数的和
struct complex//第一个参数代表实部 第二个参数代表虚部
{
double r;
double i;
};
struct complex add(struct complex x, struct complex y)
{
struct complex z;
z.r = x.r +
编程求两个复数的和
最新推荐文章于 2023-03-23 20:07:31 发布
#include"stdio.h"
//编程求两个复数的和
struct complex//第一个参数代表实部 第二个参数代表虚部
{
double r;
double i;
};
struct complex add(struct complex x, struct complex y)
{
struct complex z;
z.r = x.r +