Array arrangement method?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-30 07:20 AM
2019-07-30
07:20 AM

How to arrange arrays in GDL? Python is very simple
I want to print such a result:
1 REPLY 1
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-31 03:37 AM
2019-07-31
03:37 AM
dim test[],st[] test[1]=2.2 test[2]=1 test[3]=3.5 test[4]=4 test[5]=5.3 for i = 1 to 5 sl=1 for i2= 1 to 5 if test>test[i2] then sl=sl+1 next i2 st[sl]=test next i print stIf it is an integer, you can use this simple way of writing.
dim test[],st[] test[1]=2 test[2]=1 test[3]=4 test[4]=5 test[5]=3 for i = 1 to 5 st[test] = test next i print st