Dang thats cool
What's the code look like? If you still have it
0そうだね プレイ済み
Oh yeah, you'll regret questioning this if you get into a huge programming project
If you have a bunch of if statements inside each other it becomes really really complicated to find which ENDIF goes to which IF
It's not required but it is extremely, extremely recommended
For SmileBASIC, 1 space indent works best
For any other situation it would be 4 spaces
4そうだね プレイ済み
Here I just uploaded this, its an already made calculator thing,
you type EXPR$("1+1") and it returns "2"
If you use it, you dont need to give me credit for it, all youd do is copy over the functions and it should start working
Key in screenshot
One issue with this calculator is
It doesnt catch things like "5 SIN", it just thinks its SIN(5)
This can be an issue sometimes, so its your choice
1そうだね プレイ済み
The Shunting-Yard Algorithm, thats what you want to use
0そうだね プレイ済み
The first thing you'd need is to make a token separator, which will give you a string array of everything
So sin(-5.8-7) would return
sin, (, -5.8, -, 7, )
Then go to the RPM wiki page, and create the program from the pseudocode
It would convert it to
-5.8, 7, -, sin
Which means you read it from left to right, pushing and popping them from a stack till u have 1 item left (the answer)
0そうだね プレイ済み
It's not mine, but here's the official, most up to date (as of 10/30/16) version of Pics Limited [C33KEP3F]
One of the best drawing applications ever made
(It has a built on option to view it in Japanese)
2そうだね プレイ済み
Now:
Does
It
Convert the expression to reverse polish notation, which removes all parentheses making it super simple to calculate? That's what basically every calculator now a day does to parse the answer out, it also makes functions extremely simple to implement, heck it's the same as implementing + - * /
I made a calculator just like this, built into my game 3D_PARKOUR, with R.P.N. ofcourse
1そうだね プレイ済み
レベルエディタのロックを解除するには、すべてのレベルを完了する必要があり、またはあなたは、単に公開鍵[NDXJE3P3]をダウンロードし、ゲームと同じディレクトリにファイルを置くことができます。次に、あなた自身のレベルを作ることができるようになります
1そうだね 未プレイ
あなたの公開鍵は時代遅れです。 【9KKN44KF]:私は新しいバージョンを持っています
あなたはより多くのそれをお楽しみいただけます
3そうだね 未プレイ
(>ω<)
それはしかし、まだ行われていないことに注意してください、私は現在、より多くのレベルを作ってるんです
0そうだね 未プレイ
That very situation is why there is a DATA command
It lets you define all your numbers at the bottom of the code
RESTORE @MYDATA
FOR loop to go through every item and use READ R,G,B and any other variables
at the bottom of the code:
@MYDATA
DATA 1,2,3,4,"A",5,6,4,3,7,345,583
DATA 4,6,6,7,4,3, blah blah blah
...
...
DATA -1
(you also need a way for it to know when to stop), in this case its -1
0そうだね プレイ済み
Oh wow nice UI, i'll have to try this
0そうだね プレイ済み