数据结构算数问题
#include<stdio.h>
void assign(Comlex *A,float real,float imag){
A->realpart=real;
A->imagpart=imag;
}
void add(Comlex *A,Complex A,Complex B){
c->realpart=A.realpart+B.realpart;
c->imagpart=A.imagpart+B.imagpart;
}
void main(){
complex z1,z2,z3,z4,z;
float RealPart,ImagPart;
assign(z1,8.0,6.0);
assign(z2,4.0,3.0);
add(z1,z2,z3);
multiply(z1,z2,z4);
if(divide(z4,z3,z)){
GetReal(z,RealPart);
GetReal(z,ImagPart);
}
} Comlex结构体不给
multiply方法不给
GetReal方法不给
咋给你解决?
也不说啥问题{:10_277:}
wuliangtdi 发表于 2023-9-3 22:38
Comlex结构体不给
multiply方法不给
按截图打的,报错{:10_269:}
"C:\Users\86159\Pictures\Screenshots\屏幕截图 2023-09-03 232230.png"
页:
[1]