Advertisement
sinancetinkaya

Untitled

Jun 3rd, 2023 (edited)
1,119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. void OnStart()
  2. {
  3.     // Create and initialize the list of lists
  4.     double myList[][3] = { {4.2, 2.5, "abc"}, {1.1, 5.3, "def"}, {3.7, 0.9, "ghi"} };
  5.     int myListSize = ArraySize(myList);
  6.  
  7.     ArraySort(myList,WHOLE_ARRAY,0,MODE_ASCEND);
  8.     // Print the sorted list
  9.     for (int i = 0; i < myListSize; i++)
  10.     {
  11.         for (int j = 0; j < 3; j++)
  12.         {
  13.             Print(myList[i][j]);
  14.         }
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement