返回列表 發帖

【軟體】打字練習軟體

附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name="賴聿均";
  7.     string sch="南成國小";
  8.     int age=11;
  9.     float h=144.6;
  10.     float w=36.1;
  11.     cout<<"我的大名:"<<name<<endl;
  12.     cout<<"就讀"<<sch<<endl;
  13.     cout<<"我"<<age<<"歲"<<endl;
  14.     cout<<"我"<<h<<"公分"<<endl;
  15.     cout<<"我"<<w<<"公斤"<<endl;
  16.     system("pause");
  17.     return 0;  
  18. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name="洪浚恩";
  7.     string school="五權國小";
  8.     int age=9;
  9.     float high=157.5;
  10.     float weight=54;
  11.     cout<<"我的大名:"<<name<<endl;
  12.     cout<<"就讀:"<<school<<endl;
  13.     cout<<"年齡"<<age<<"歲"<<endl;
  14.     cout<<"身高:"<<high<<"cm"<<endl;
  15.     cout<<"體重:"<<weight<<"kg"<<endl;
  16.     system("pause");
  17.     return 0;
  18. }   
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name="郭又瑄";
  7.     string school="獅湖國小";
  8.     int age=11;
  9.     float h=179.9;
  10.     float w=100.1;
  11.     cout<<"我的大名:"<<name<<endl;
  12.     cout<<"就讀:"<<school<<endl;
  13.     cout<<"年紀:"<<age<<"years old"<<endl;
  14.     cout<<"身高:"<<h<<"cm"<<endl;
  15.     cout<<"體重:"<<w<<"kg"<<endl;
  16.     system("pause");
  17.     return 0;
  18. }
複製代碼

TOP

返回列表