CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:47:16 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=db60dcd23bbd2c7b49dfae8a2e4005f41df2685d4010b4f3f8680e21db4ca960a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22HOlkzhnjTLxOwwHPKbgLBVs8n7Xaz2DG%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d39d6979c51eef-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
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 47 sec ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 2 min ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 2 min ago | 0.10 KB
-
⭐⭐⭐Make $15OO in 2O minutesV G⭐⭐
Java | 2 min ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 3 min ago | 0.25 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