標題:
陣列 (二)
[打印本頁]
作者:
鄭繼威
時間:
2023-3-31 02:00
標題:
陣列 (二)
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[8]={30,31,33,32,31,35,28,29};
string c[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++){
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
張絜晰
時間:
2023-3-31 20:24
#include<cstdlib>
#include<iostream>
using namespace std;
int main(){
string n[8]={"忠","孝","仁","愛","信","義","和","平"};
int a[8]={30,31,33,32,31,35,28,29};
for(int i=0;i<=7;i++){
cout<<"五年"<<n[i]<<"班有"<<a[i]<<"人"<<endl;
}
system ("pause");
return 0;
}
複製代碼
作者:
何權晉
時間:
2023-3-31 20:32
#include <iostream>
using namespace std;
int main()
{
int a[]={80,76,75,65,55,54,93,88};
string b[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0;i<=8-1;i++)
cout<<"五年"<<b[i]<<"班有"<<a[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
黃子豪
時間:
2023-3-31 20:32
#include<iostream>
using namespace std;
int main(){
int a[]={32,30,28,31,34,29,31,35,};
string b[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++){
cout<<"五年"<<b[i]<<"班有"<<a[i]<<"人\n";
}
system("pause");
return 0;
}
複製代碼
作者:
盧玄皓
時間:
2023-3-31 20:33
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[8]={14,23,22,15,16,19,14,15};
string a[]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<=7; i++)
cout<<"七年"<<a[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
蔡沛倢
時間:
2023-3-31 20:33
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int a[8]={30,31,33,32,31,35,28,29};
string c[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int b=0;b<=7;b++){
cout<<"五年"<<c[b]<<"班有"<<a[b]<<"個人"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
呂宗晉
時間:
2023-3-31 20:34
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[8]={30,31,33,32,31,35,28,29};
string c[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++){
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
}
system("pause");
return 0;
複製代碼
作者:
廖秝瑜
時間:
2023-3-31 20:34
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int a[8]={30,31,33,32,31,35,28,29};
string b[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++){
cout<<"5年"<<b[i]<<"班有"<<a[i]<<"人"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
呂得銓
時間:
2023-3-31 20:34
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[8]={30,31,33,32,31,35,28,29};
string c[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++)
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
邵凡榛
時間:
2023-3-31 20:36
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int a[8]={30,31,33,32,31,35,28,29};
string b[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0;i<=7;i++){
cout<<"五年"<<b[i]<<"班有"<<a [i]<<"人"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
張桔熙
時間:
2023-3-31 20:39
include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int a[8]={30,31,33,32,31,35,28,29};
string b[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<=8; i++)
cout<<"5年"<<b[i]<<"班有"<<a[i]<<"人"<<endl;
system("pause");
return 0;
}
複製代碼
作者:
邱品惟
時間:
2023-8-4 16:29
#include<iostream>
using namespace std;
int main()
{
int n[8]={30,31,33,32,31,35,28,29};
string c[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0; i<8; i++)
{
cout<<"5年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
李宗儒
時間:
2024-1-8 18:18
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n[]={30,31,33,32,31,35,28,29};
string c[8]={"忠","孝","仁","愛","信","義","和","平"};
for(int i=0;i<8;i++)
{
cout<<"五年"<<c[i]<<"班有"<<n[i]<<"人"<<endl;
}
return 0;
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2