當前位置:編程學習大全網 - 電腦編程 - C++編寫CAD軟件

C++編寫CAD軟件

#include<stdio.h>

#include<math.h>

main()

{

float a,b;

char c;

printf("shurushuzihefuhao:");

scanf("%f%c%f",&a,&c,&b);

if (c="+")

printf("%f",a+b);

else if (c="-")

printf("%f",a-b);

else if (c="*")

printf("%f",a*b);

else if (c="/")

printf("%f",a/b);

getch();

} .

  • 上一篇:單片機編程如何解決12864顯示壹行字閃爍
  • 下一篇:MCGS 腳本 組態編程,取整函數?
  • copyright 2024編程學習大全網