为什么我将下面的程序放在VS2010 里不能运行 本人还是一个c语言菜鸟 ,望说的详细点

#include"stdafx.h"#include<complex.h>intmain(void){double_complexcx=1.0+3.0*I;double_... #include "stdafx.h"
#include <complex.h>
int main(void)
{
double _complex cx = 1.0+3.0*I;
double _complex cy = 1.0-4.0*I;
printf("woking with complex number:");
printf("\nstarting values :cx=%.2f+.2fi cy =%.2f+.2fi",creal(cx),cimag(cx),creal(cy),cimag(cy));
double _complex=cx+cy;
printf("\n\nthe sum cx+cy=%.2f+.2fi",creal(sum),cimag(sum));
double _complex difference= cx-cy;
printf("\n\nthe difference cx-cy=%.2f+.2fi",creal(difference),cimag(difference));
double _complex product=cx*cy;
printf("\n\nthe product cx*cy=%.2f+.2fi",creal(product),cimag(product));
double _complex quotient=cx/cy;
printf("\n\nthe quotient cx/cy=%.2f+.2fi",creal(quotient),cimag(quotient));
double _complex conjugate=conj(cx);
printf("\n\nthe conjugate of cx=%.2f+.2fi",creal(conjugate),cimag(conjugate));
return 0;
}
展开
 我来答
匿名用户
2016-01-14
展开全部
无法回答。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式