-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|372|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




HoboBen

Parse point-pair string

3rd September 2010 Cobra
Using a simple parser, extract the point-pairs from a string such as:
''-850.5,75.0 958,137.5 958,-262.5 850,325 742,262.6 742,137.5''
By using a simple tokenizer/lexer, we can safely catch all errors. And it's much more readable and maintainable*snip*


HoboBen

Mergesort a linked list

26th August 2009 Cobra
Mergesort is a sorting algorithm that is especially suited to sorting linked lists.
Note: You really, really don't want to sort any lists that contain strings!!!
Feel free to use for any purpose, with or without attribution.
[code]
{
Mergesort a l*snip*


flying_cucco

SoScore Mode 0 Password Extractor

2nd October 2008 Cobra
hack into the (old) scoreboards


flying_cucco

Nested Types Example

23rd April 2008 Cobra
How to make types-within-types in Cobra -- this took me a while to figure out. Hopefully self explanatory if you are familiar with how the types work, with lists and pointers.
[code]program

type foo = record
value : integer
endtype

type bar *snip*

More - Older Posts