最近的學習紀錄
-
[C language]Check the endian order of CPU
Test your CPU which is little endian or big endian.Usually the CPU is little endian but the network is big endian. That is why socket program has to transfer ...
Posted 29 Nov 2009 17:17 by Shih-Shen Lu
-
[C language] Manhattan Distance Search extension
Extension with the fixed direction to searchStep:from top to leftfrom left to bottomfrom bottom to rightfrom right to topmain.c
1 #include <stdio.h ...
Posted 23 Nov 2009 06:14 by Shih-Shen Lu
-
[C language] Manhattan Distance Search
What is Manhattan Distance? It means |x2-x1|+|y2-y1|.Now I want to design a program that can return the related coordinates as you input ...
Posted 22 Nov 2009 21:55 by Shih-Shen Lu
-
[C language]Queue 與 Stack
前言:讓使用者在一開始輸入要模擬Queue或是Stack,預設Queue與Stack大小不超過100個元素,當使用者選擇Queue則有Enqueue與Dequeue選擇Stack則有Push與Pop,之後使用者可以一直使用這四項功能,一直到使用者輸入字元’q’為止。同時每次使用任四項之一功能時都必須印出整個陣列的狀態。限制 ...
Posted 23 Nov 2009 06:18 by Shih-Shen Lu
-
[C language] Hacking application by LD_PRELOAD
ObjectiveChange the function call before load the original function.Methodmain.c 1 #include <stdio.h> 2 3 int main() 4 { 5 printf("original printf %d\n", 1); 6 ...
Posted 15 Nov 2009 17:54 by Shih-Shen Lu
|
|