This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* author: Dutor | |
| * from : http://www.dutor.net/index.php/2011/04/recursive-iterative-quick-sort/ */ | |
| int | |
| partition(int *a, int n) //~ seperate a[], using a[0] as pivot | |
| { | |
| int l = 0, r = n; | |
| int pivot = a[l]; | |
| while(l < r) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; from http://www.mouseos.com/arch/processor_mode.html | |
| ;---------------------------------------------------------------------- | |
| ; | |
| ; read_sector(int sector, char *buf) - read one floppy sector(LBA mode) | |
| ; input: di - sector | |
| ; si - buf | |
| ;---------------------------------------------------------------------- | |
| read_sector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| source $VIMRUNTIME/vimrc_example.vim | |
| source $VIMRUNTIME/mswin.vim | |
| behave mswin | |
| syntax on | |
| filetype plugin on | |
| "about tab | |
| set autoindent |
NewerOlder