原创 Hello world in Java
Hello everyone ! This is my first blog. The following is a hello world program in Java. class hello { public stat
原创 [Sonia] Implementation of Huffman Algorithm
首次使用自頂向下的方法進行編程,初步感受到了增量式編碼與調試的優點,能獨立解決編程過程中出現的各種Bug。 進步明顯且迅速,特此表揚,(*^__^*) …… //File name: h_tree.h #ifndef _H_TRE
原创 [Sonia] Implementation of a Binary Tree Sort in C
[First Accepted Time: 2013/02/26] 1. Basic binary tree structure definition //File name: binary_sort.h #ifndef _BINARY
原创 初學者編程練習1
[2013年2月26日] 1. 編程判斷兩棵給定的二叉樹是否相等 Version 1 [Accepted 2013/02/27] bool equal_bin_tree(struct binary_tree* b_tree1,
原创 初學者編程練習3
1. 快速排序算法 [Accepted 2013/03/12] void quick_sort(int data[], int low, int high) { //對data[]做快速排序 int pivoc =
原创 Fool's Scripts for Some Debugging
1. regression for v in *.java; do name=`echo $v | cut -d. -f1` echo == $name == #/usr/lib/jvm/java-6-openjdk/b
原创 初學者編程練習2
1. 給定一個鏈表N,將其逆置; [Version 1: Accepted 2013/03/05] // File name: inverse_link.h #ifndef _INVERSE_LINK_H_ #define _I
原创 [Segmentation Fault] Oops! The filename points to a constant string
We can compile the following program using the gcc compiler. But when running it, we get a segmentation fault. Why ?
原创 Learn to Write Your Makefile
[實驗目的] 1. 掌握基本的Linux下makefile的編寫技能 2. 能夠閱讀常見的makefile [實驗任務] 在linux平臺上編譯Sonia的一個project: [Sonia] Implementation
原创 Redhat 網絡配置
1. /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=10.2.8.70 NETMASK=255.255.0
原创 C++ 編程練習3
C++版Dijkstra最短路徑算法 ///////////////////////////////////////////////////////////////////////////////////// //file:Shorte
原创 網絡配置的四大基本要素: IP + Netmask + Gateway + DNS
1. IP IP地址(英語:Internet Protocol Address)是一種在Internet上的給主機編址的方式,也稱爲網際協議地址。常見的IP地址,分爲IPv4與IPv6兩大類。 IP地址就像是我們的家庭住址一樣,如果你
原创 JVM-20130326
1. public static void main (String args[]) { long startTime = System.currentTimeMillis(); int x = 1;
原创 編程進階練習3
1. Dijkstra 最短路徑算法 //File name: shortest_path.h #ifndef _SHORTEST_PATH_H_ #define _SHORTEST_PATH_H_ #include <stdio.h
原创 From Source Code to an Executalbe File ----- Learning of Gcc on Linux Operating Systems
Windows make you fool and to learn the computer, you'd better use the linux from now on !