- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- char f[5]="章魚";
- cout<<f<<endl;
- char f1[5]={'S','a','b','e','r'};
- for(int i=0;i<5;i++)
- {
- cout<<f1[i];
- }
- cout<<endl;
- char y='I';
- cout<<y<<endl;
-
- string g[5]={"A","r","t","h","ur"};
- for(int i=0;i<5;i++)
- {
- cout<<g[i];
- }
- cout<<endl;
- string g1="Arthur";
- cout<<g1<<endl;
-
- int x=16;
- cout<<x<<endl;
- int x1[3]={1,2,3};
- for(int i=0;i<3;i++)
- {
- cout<<x1[i]<<endl;
- }
-
-
- system("pause");
- return 0;
- }
複製代碼 回復 1# 陳品肇 |