656344827
V2EX  ›  编程

求助大佬,在 Clion 上运行代码显示原路径

  •  
  •   656344827 · Jun 23, 2019 · 4488 views
    This topic created in 2514 days ago, the information mentioned may be changed or developed.

    MAC 版的 Clion 运行代码之后就一直在 Run 必须要点击红色小方块 Stop 才能停止 底下的运行结果如下 /Users/windzz/CLionProjects/untitled4/cmake-build-debug/untitled4 Process finished with exit code 15 已经安装从 APP store 下载的 Xcode 了。

    代码如下: #include <stdio.h> #include <math.h>

    int main() { double a,b,c,s,area; scanf("%lf,%lf,%lf",&a,&b,&c); s=(a+b+c)/2; area=sqrt(s*(s-a)(s-b)(s-c)); printf("a=%f\tb=%f\tc=%f\n",a,b,c); return 0; }

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:47 · PVG 03:47 · LAX 12:47 · JFK 15:47
    ♥ Do have faith in what you're doing.