A cool graphic printer for our first teamwork project.
$ git clone git@github.com:ccLLy1n/peeyan.git
#or
$ git clone https://github.com/ccLLy1n/peeyan.git
Options:
-t Create a triangle, enter the side parameter.
-r Create a rectangle, enter the length and width parameter.
-s Create a star, enter the side parameter.
-c Create a circle, enter the radius parameter.
-h Create a trapaziod, enter the topline and height.
-exit Stop creating graphs, stack and align all the graphs.
Create_componemt
------------------
t是三角形,r是矩形,s是星形,c是圓形,h是梯形,最後輸入exit進入下一階段
請輸入想要的形狀:t
請輸入三角形高度(層數):5
這個三角形編號是t1
請輸入想要的形狀:r
請輸入矩形Y軸邊長:3
請輸入矩形X軸邊長:7
這個矩形編號是r1
請輸入想要的形狀:s
請輸入星形邊長:7
這個星形編號是s1
請輸入想要的形狀:c
請輸入圓形直徑:13
這個圓形編號是c1
請輸入想要的形狀:h
請輸入梯形高:4
請輸入梯形上邊長:6
這個梯形編號是h1
請輸入想要的形狀:exit
進入下一階段
Draw_graphic
------------------
*
***
*****
*******
*********
***********
*******
*******
*******
*
* *
* *
* *
* *
* *
******* *******
* *
* *
* *
* *
* *
* ******* *
* * * *
* * * *
* * * *
* * * *
* * * *
** **
*****
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
*****
******
********
**********
************