Using object orientated programming

1 回表示 (過去 30 日間)
Travis Smith
Travis Smith 2016 年 10 月 17 日
編集済み: Prasad Mendu 2016 年 10 月 19 日
I have to draw a n-pointed and n-sized star using a turtle which basically functions as a pen that can be told to draw a certain length and to rotate to draw in different directions. It should work as a function where the user inputs the size and number of points and the turtle draws the star.
  1 件のコメント
Guillaume
Guillaume 2016 年 10 月 17 日
編集済み: Guillaume 2016 年 10 月 17 日
Do it in LOGO. Done in 8 lines of code!
More seriously, what is your question and where does OOP figure into this?
Hopefully, you're not asking for somebody to do your homework for you.

サインインしてコメントする。

回答 (1 件)

Prasad Mendu
Prasad Mendu 2016 年 10 月 19 日
編集済み: Prasad Mendu 2016 年 10 月 19 日

カテゴリ

Help Center および File ExchangeEarth and Planetary Science についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by