- #include<iostream>
- #include<cstdlib>
- using namespace std;
-
- void say_hello()
- {
- cout<<"*======================*"<<endl;
- cout<<"*歡迎使用璽安小星星軟體*"<<endl;
- cout<<"*======================*"<<endl;
- }
- void triangle1()
- {
- for(int i = 1 ; i <=5 ; i++)
- {
- for(int j = 1 ; j <=i ; j++)
-
- {
- cout<<"*";
- }
- cout<<endl;
- }
- }
- int main()
- {
- while(true)
- {
- say_hello();
- triangle1();
-
-
-
-
-
-
- system("pause");
- }
- return 0;
-
- }
複製代碼 |