linux 中很多系統調用的api 在函式宣告的地方都有一個: asmlinkage http://kernelnewbies.org/FAQ/asmlinkage 中說:The asmlinkage tag is one other thing that we should observe about this simple function. This is a #define for some gcc magic that tells the compiler that the
Floyd-Warshall 演算法用來找出每對點之間的最短距離。它需要用鄰接矩陣來儲存邊,這個演算法通過考慮最佳子路徑來得到最佳路徑。 注意單獨一條邊的路徑也不一定是最佳路徑。 從任意一條單邊路徑開始。所有兩點之間的距離是邊的權,或者無窮大,如果兩點之間沒有邊相連。 對於每一對頂點 u 和 v,看看是否存在一個頂點 w 使得從 u 到 w 再到 v 比己知的路徑更短。如果是更新它。 不可思議的是,只要按排適當,就能得到結果 // dist(i,j)
Here is my bash alias. The argument is the <branch name> to export.An example: cd /path/to/foo/ _gittar masterThe output is (time in ISO 8601 / UTC): ../foot-YYYYMMDD.HHMM.tar.gzfunction _gittar (){ local name=$(pwd) name=${name#
據說是HuaWei 面試試題,不知道真假了。#include <stdio.h>int check(int m){ int n =m ,i,d = 0; while(n) { d = d * 10 + n %10; n /= 10 ; } return (d == m);}int checkstr(char * str){ int len,
struct maxInfo{ int start; int end; int max;};bool maxValue(int a[], int n, maxInfo& mi ){ if( n < 0 ) { return false;} mi.start = mi.end = 0; mi.max = a[0]; int i; int curValue = mi.
IBM WebSphere Application Server (WebSphere應用伺服器)是一個Web應用伺服器(內含IBM Http Server),它本質上是適合於servlet的Web伺服器外掛程式,提供了增強Servlet API和Servlets管理工具,並整合了JSP技術和資料庫連接技術。由於項目的需要,需要將某一部分的web應用移植到WebSphere Application