国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

1

2023-03-03 17:33 作者:-_-Monet-_-  | 我要投稿

#include<stdio.h>

typedef struct ComplexType

{

float realPart,imagePart;

} ComplexType;

ComplexType add(ComplexType z1, ComplexType z2);

ComplexType sub(ComplexType z1, ComplexType z2);

ComplexType multiply(ComplexType z1, ComplexType z2);

int main()

{

ComplexType a,b,c1,c2,c3;

scanf("%f %f",&a.realPart,&a.imagePart);

scanf("%f %f",&b.realPart,&b.imagePart);

c1=add(a,b);

printf("%f+%fi",c1.realPart,c1.imagePart);

c2=sub(a,b);

printf("%f+%fi",c2.realPart,c2.imagePart);

c3=multiply(a,b);

printf("%f+%fi",c3.realPart,c3.imagePart);

return 0;

}

ComplexType add(ComplexType z1, ComplexType z2){

ComplexType temp;

temp.realPart=z1.realPart+z2.realPart;

temp.imagePart=z1.imagePart+z2.imagePart;

return temp;

}

ComplexType sub(ComplexType z1, ComplexType z2){

ComplexType temp;

temp.realPart=z1.realPart-z2.realPart;

temp.imagePart=z1.imagePart-z2.imagePart;

return temp;

}

ComplexType multiply(ComplexType z1, ComplexType z2){

ComplexType temp;

temp.realPart=z1.realPart*z2.realPart;

temp.imagePart=z1.imagePart*z2.imagePart;

return temp;

}


1的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
南澳县| 金湖县| 惠来县| 涞水县| 元朗区| 饶平县| 灵川县| 抚宁县| 金堂县| 胶州市| 理塘县| 洱源县| 元朗区| 云霄县| 米脂县| 广元市| 五华县| 阳原县| 西乌| 威信县| 赣榆县| 金华市| 光泽县| 宁南县| 南平市| 望都县| 桐庐县| 香港 | 曲周县| 南城县| 岳池县| 景宁| 竹山县| 疏附县| 临邑县| 永昌县| 彩票| 葫芦岛市| 钟祥市| 渝中区| 拉孜县|