標題:
陣列 (二)
[打印本頁]
作者:
tonyh
時間:
2015-1-24 11:39
標題:
陣列 (二)
本帖最後由 tonyh 於 2015-1-24 11:41 編輯
[attach]1131[/attach]
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31,35,28,29};
string c[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++)
cout<<"五年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
洪振庭
時間:
2015-1-24 11:43
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31,35,28,29};
string c[]={"忠","孝","仁","愛","信","義","和","平"};
for (int i=0;i<8;i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
李知易
時間:
2015-1-24 11:43
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31,35,28,29};
string c[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0;i<8;i++)
{
cout<<"五年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
李大全
時間:
2015-1-24 11:52
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31,35,28,29};
string c[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++)
cout<<"五年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
梁和雋
時間:
2015-1-24 11:52
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31,35,28,29};
string c[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++)
cout<<"五年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
謝瀞儀
時間:
2015-1-24 11:54
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31};
string c[]={"懶","的","打","字","啦"};
for(int i=0;i<5;i++)
{
cout<<"五年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
}
system("pause");
return 0;
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2