Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- // Create and initialize the list of lists
- double myList[][3] = { {4.2, 2.5, "abc"}, {1.1, 5.3, "def"}, {3.7, 0.9, "ghi"} };
- int myListSize = ArraySize(myList);
- ArraySort(myList,WHOLE_ARRAY,0,MODE_ASCEND);
- // Print the sorted list
- for (int i = 0; i < myListSize; i++)
- {
- for (int j = 0; j < 3; j++)
- {
- Print(myList[i][j]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement