標題:
自我介紹
[打印本頁]
作者:
tonyh
時間:
2014-8-16 12:01
標題:
自我介紹
本帖最後由 tonyh 於 2014-8-16 12:05 編輯
[attach]944[/attach]
#include<iostream> //input & output
#include<cstdlib> //standard liburary
using namespace std;
int main() //主函式
{
string name="黃國穎";
string school="愛國國小";
int age=9;
float height=138.6;
float weight=27.5;
cout<<"我的大名: "<<name<<endl;
cout<<"就讀: "<<school<<endl;
cout<<"今年: "<<age<<" 歲"<<endl;
cout<<"身高: "<<height<<" 公分"<<endl;
cout<<"體重: "<<weight<<" 公斤"<<endl;
system("pause");
return 0; //回傳0 告訴電腦本程式已成功結束
}
複製代碼
作者:
梁和雋
時間:
2014-8-16 12:04
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
string name="梁和雋(雋雋)";
string school="正興國中";
int age=9;
float height=174.5;
string weight="??.?";
cout<<"我的大名: "<<name<<endl;
cout<<"就讀: "<<school<<endl;
cout<<"今年: "<<age<<" 歲"<<endl;
cout<<"身高: "<<height<<" 公分"<<endl;
cout<<"體重: "<<weight<<" 公斤"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
洪振庭
時間:
2014-8-16 12:04
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
string name="洪振庭";
string school="龍華國小";
int age=12;
float height=???;
float weight=???;
cout<<"我姓名: "<<name<<endl;
cout<<"就讀: "<<school<<endl;
cout<<"今年: "<<age<<" 歲"<<endl;
cout<<"身高: "<<height<<" 公分"<<endl;
cout<<"體重: "<<weight<<" 公斤"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
李知易
時間:
2014-8-16 12:06
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
string name="李知易";
string school="莒光國小";
int age=9;
float height=137.5;
float weight=26.5;
cout<<"我的大名: "<<name<<endl;
cout<<"就讀: "<<school<<endl;
cout<<"今年: "<<age<<" 歲"<<endl;
cout<<"身高: "<<height<<" 公分"<<endl;
cout<<"體重: "<<weight<<" 公斤"<<endl;
system ("pause");
return 0;
}
複製代碼
作者:
李大全
時間:
2014-8-16 12:07
#include<iostream> //input & output
#include<cstdlib> //standard liburary
using namespace std;
int main() //主函式
{
string name="李大全";
string school="陽明國小";
int age=12;
float height=133.6;
float weight=30.5;
cout<<"我的大名: "<<name<<endl;
cout<<"就讀: "<<school<<endl;
cout<<"今年: "<<age<<" 歲"<<endl;
cout<<"身高: "<<height<<" 公分"<<endl;
cout<<"體重: "<<weight<<" 公斤"<<endl;
system("pause");
return 0; //回傳0 告訴電腦本程式已成功結束
}
複製代碼
作者:
謝瀞儀
時間:
2014-8-21 12:10
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
string name="謝?儀";
string school="龍華國中";
int age=-100 ;
float height=0;
float weight-111111111111;
cout<<"我的名:"<<name
<<"讀"<<school<<
<<age<<"歲"<<
<<"體重:" <<"g"
<<endl;
system("pause")
return 0;
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2