close
 
[回顧]第一次的C++作業
 


上了幾次程式設計課
難度一直再增加
程度卻還在原地停留
希望C++跟我成為好朋友= =

這是我們第一次上課的作業
內容是要執行計算房間大小

#include

using namespace std;

int main ()

    {
     int width ,length ;  
        cout << "What is the width of room? " << endl;
        cin >> width ;
        cout << "What is the length of room? " << endl;
        cin >> length;
        cout << "房間的大小是"<"平方公尺" <

system( "pause" ) ;

return 0;

}













by兔


↓點它選擇你要的回覆↓
無圖表示服務離線 

arrow
arrow
    全站熱搜

    Melita 粉兔 發表在 痞客邦 留言(0) 人氣()