標題:
陣列 (二)
[打印本頁]
作者:
tonyh
時間:
2014-1-11 16:47
標題:
陣列 (二)
#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<=7; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
施伯叡
時間:
2014-1-11 16:51
#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<=7; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
張峻瑋
時間:
2014-1-11 16:51
#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<=7;i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
張郁庭
時間:
2014-1-11 16:52
#include<iostream>
#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<=7;i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system ("pause");
return 0;
}
複製代碼
作者:
劉得旗
時間:
2014-1-11 16:53
#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<=7; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
張彥承
時間:
2014-1-11 16:53
#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<=7; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
周雍程
時間:
2014-1-11 16:54
#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<=7; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
張郁偵
時間:
2014-1-11 16:56
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,32,30,31,32,31,32};
string c[]={"甲 ","乙 ","丙 ","丁 ","戊 ","已 ","更 ","辛 ",};
for(int i=0; i<=7; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system ("pause");
return 0;
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2