Play Journal Entries

Petit computer 3

Villitnakahara1226

10/08/2017 9:03 AM ·Spoilers

文字列変数n文字目がA$[n]で取り出せるならもしかして、と思って、 "HOGE"で同じことを試してみたらやはり出来た。 なかなか記法が自由だなー。

Advertisement

Comment

This post has no comments.

  • 疑問に思ったことは実際に試すということは大事ですね。 ちなみに変数の場合は左辺に記述できますが、定数なので左辺値に記述はできません。(A$="ABC"の時にA$[1]="XY"とすることでA$を"AXYC"にすることは可能だけど"ABC"[1]="XY"という記述はできない) この変態仕様はプチコン3号(SmileBASIC)ならではのものですが、これを知っていることで大幅なプログラムリスト短縮も可能であるためQSPの作りやすさもかなり変わってきます。

    Yeahs2
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-DPU-2NL9-VGL-FFFU

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: