跳到主要內容

發表文章

目前顯示的是有「Program」標籤的文章

[Programer] What is Framework?

做程式開發目前的主流都適用Framwork 來開發, 但是今天遇到一個朋友在問什麼是Framework?? Framework基本上是一個讓開發系統 省時省力又容易使用的架構 wiki 上是這麼說明的 A software framework is a universal, reusable  software platform  used to develop applications, products and solutions. Software frameworks include support programs, compilers, code libraries, an  application programming interface (API)  and tool sets that bring together all the different components to enable development of a project or solution. 基本可是算是一個系統開發過程的基礎設施 這個可以用積木來比喻 再用積木建構物件的時候 是可以用積木一塊一塊的組合了起來 但是如果你想蓋的房子 用積木積木慢慢做 還要設計窗戶跟門這些東西 會很花時間 這時候如果有人已經做好窗戶的積木 門的積木 你自己拿來用 這樣不救蓋起房子快很多了嗎? 在程式開發中也是這樣 很多功能你都可以自己寫 但是有些時候某先常用功能都有人寫好 而且包成一整套 那這樣只接這這個一整套的套件 開發起來救迅速很多了 而這套件 就是framework

[C,C++]DataType

DWORD DWORD is not a standard C datatype. Typically it represents a double word. On a 16-bit machine a WORD would be 16 bits, on a 32-bit machine, it would be 32 bits. Having said that, it would imply that a double word on a 16 bit machine is 32 bits and on a 32 bit machine, it would be 64 bits. However, that is very vendor dependent. If you use the 32-bit Microsoft compilers, a WORD and DWORD are the same size!!! Since it deals with words, it is meant for low level use for instance bit patterns on an IO chip. If you want high level usage, use unsigned long. For windows (9x, ME, 2K & XP) registry a DWORD is a 32-bit unsigned long.

JAVA裡字元(Integer)與字串(String)的互轉

‧字串轉為數值   byte Byte.parseByte(String s [, int radix]) 將參數 s 由 String 轉換成 byte 資料型態   short Short.parseShort(String s [, int radix]) 將參數 s 由 String 轉換成 short 資料型態   int Integer.parseInt(String s [, int radix]) 將參數 s 由 String 轉換成 int 資料型態   long Long.parseLong(String s [, int radix]) 將參數 s 由 String 轉換成 long 資料型態   float Float.parseFloat(String s) 將參數 s 由 String 轉換成 float 資料型態   double Double.parseDouble(String s) 將參數 s 由 String 轉換成 double 資料型態 ‧數值轉為字串  String.valueOf(boolean b)  String String.valueOf(char c)  String String.valueOf(char[] data [, int offset, int count])  String String.valueOf(int i)  String String.valueOf(long l)  String String.valueOf(float f)  String String.valueOf(double d)  String Byte.toString(byte b)  String Short.toString(short s)  String Integer.toString(int i [, int radix])  String Long.toString(long l [, int radix])  Float.toString(float f)  String Double.toString(double)

在 Windows 上安裝 Subversion 獨立伺服器

A.到 SVN的官方網站 下載svn(.zip) B.解壓縮到你預設的目錄下 我都是放在C:\Program Files\subversion下 , C.設定環境變數  1.在Path中加上 $[Subversion安裝的路徑] 讓之後在執行SVN相關程式比較方便   2.另外加上以下幾個變數     SVN_EDITOR=notepad.exe //設定commit message的編輯程式     LANG = zh_TW.UTF8 //設定SVN的語言語系     APR_ICONV_PATH = $[Subversion安裝的路徑]\iconv //設定SVN的語言語系 D.建立一個 SVN專案   svnadmin create $[要建立的專案路徑]     ex: svnadmin create D:\My_Project_SVN   就會在D:\下建立一個My_Project_SVN的資料夾,並且把相關的檔案複製過去。 E.設定SVN專案的權限   在D:\My_Project_SVN\conf下有三個檔案     svnserve.conf 中已經有一些設定了,請參照下面的設定,把 # 註解符號移除:       [general]       anon-access = read //匿名者的存取權限 有read , write ,none       auth-access = write //通過認證者存取權限 有read , write ,none       password-db = passwd //使用者密碼檔       authz-db = authz //認證權限設定檔       realm = CIMS Project     切換到 authz檔,參考以下的設定:       [groups] //群組的設定       CIMS = user1,user2 //群組名稱 = 使用者1, 使用者2       [/] //[Dir]下的權限設定 r(read),rw(read+write),””(none)       @CIMS =rw //@群組 = 權限       User1=rw //使用者名稱 =權限 (*代表所有登入者) ...