1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-12-16 15:44:39 +00:00
202401-programming-assignments/【实践课外】15.结构体1/6-6 复数相乘运算.c

9 lines
134 B
C
Raw Normal View History

2024-12-11 03:41:51 +00:00
PLEX multi(PLEX a,PLEX b) {
PLEX c;
c.re = a.re * b.re - a.im * b.im;
c.im = a.re * b.im + a.im * b.re;
return c;
}