自學C語言中,
課本上有一個程式
#include <stdio.h>
int main(void)
{
float weight, value;
printf("Are you worth your weight in rhodium?\n");
printf("Let's check it out.\n");
printf("Please enter your weight in pounds:\n");
scanf("%f", &weight);
value = 770 * weight * 14.5833;
printf("Your weight in rhodium is worth $%.2f.\n", value);
printf("You are easily worth that! If rhodium prices drop,\n");
printf("eat more to maintain your value.\n");
return 0;
}
我想試試輸入體重得結果,但是我沒找到有cl.exe檔案,就設定不了路徑。
請問哪位大神能發一下嗎?
小女子感激涕零
uj5u.com熱心網友回復:
vc++沒有正確安裝好,找一個綠色的vc++,里面有一個bat檔案,運行下uj5u.com熱心網友回復:
你用的什么工具?編譯成功的話工程目錄的bin目錄下應該會生成.exe檔案uj5u.com熱心網友回復:
Code::Blocks不香嗎?轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/14297.html
標籤:模式及實現
上一篇:UDP與防火墻
下一篇:堆疊結構體指標
