精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • C語言編程:輸入一個華氏溫度,要求輸出相應(yīng)攝氏溫度,c=5/9(f-32)保留2位小數(shù)

    C語言編程:輸入一個華氏溫度,要求輸出相應(yīng)攝氏溫度,c=5/9(f-32)保留2位小數(shù)
    其他人氣:129 ℃時(shí)間:2020-06-06 12:55:46
    優(yōu)質(zhì)解答
    int main(){
    float c,f;
    printf("please input the f=");
    scanf("%f",&f);
    c=5/9*(f-32);
    printf("the c=%f",c);
    }你運(yùn)行了么,不行啊,組建的時(shí)候還是有個錯誤C:\Documents and Settings\Administrator\桌面\溫度轉(zhuǎn)換.cpp(7) : error C2065: 'F' : undeclared identifier.cpp(7) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data.cpp(9) : warning C4508: 'main' : function should return a value; 'void' return type assumed執(zhí)行 cl.exe 時(shí)出錯.作業(yè).exe - 1 error(s), 0 warning(s)int main(){float c,f;printf("please input the f=");scanf("%f",&f);c=5.0/9*(f-32);printf("the c=%.2f",c);} 你再完整的復(fù)制下這個試試。你上面提示的那個錯誤明顯是你沒有完全復(fù)制我的,因?yàn)槲业某绦蚶锒紱]有用到大寫的F。
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版