CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 23:03:21 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=18354c6df6eba00730ecc504c98aaea165fe3442bb271b720591a12470aa0d46a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22IGJDKog2tFmpuW8BcDob93AUEFIZRp8O%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d1fd825921ad8b-BLR
crt qsort example - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include once "crt.bi"
- randomize timer
- type character_struct
- as string * 10 name
- as integer yPosition
- end type
- declare function char_sort_callback cdecl ( byval elm1 as any ptr, byval elm2 as any ptr ) as integer
- dim as character_struct characters(10)
- print "NOT SORTED..."
- for i as integer = 0 to ubound(characters)
- characters(i).yPosition = int(rnd*10000)
- print characters(i).yPosition
- next
- 'here's how to call the crt qsort on a custom type
- qsort( @characters(0), ubound(characters)+1, sizeof(character_struct), @char_sort_callback() )
- print
- print "SORTED..."
- for i as integer = 0 to ubound(characters)
- print characters(i).yPosition
- next
- sleep
- 'here's the meat of it...
- 'we're sorting based on the "yPosition" variable in the character type,
- 'which will sort every element of the whole array in turn.
- function char_sort_callback cdecl ( byval elm1 as any ptr, byval elm2 as any ptr ) as integer
- return sgn( (cptr(character_struct ptr, elm1)->yPosition) - (cptr(character_struct ptr, elm2)->yPosition) )
- end function
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 5 sec ago | 0.10 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 9 sec ago | 0.24 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 18 sec ago | 0.10 KB
-
📌 Swapzone +37% glitch
JavaScript | 18 sec ago | 0.24 KB
-
📝 Exchange profit method
JavaScript | 27 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 29 sec ago | 0.10 KB
-
⭐ Free Crypto Method ⭐
JavaScript | 37 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 41 sec ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand