Category Archives: C/C++

C/C++ 在Linux上製作C static/shared/dynamic library

之前已經有一則關於library製作的貼文放在我的BBS個人板P_allen501pc的精華區內。但是一直苦無Web版本;在偶然的機會下,我剛好找到一個有關於C static/shared/dynamic library的文章,可以跟各位好好分享:http://www.vr.ncue.edu.tw/esa/EmbeddedSystemProgramming2010/ch09.htm事實上,這篇教學資源出自國立彰化師範大學車輛科技研究所 黃裕煒教授所教授之2010年嵌入式系統課程,若各位對於課程有興趣,可至 http://www.vr.ncue.edu.tw/esa/EmbeddedSystemProgramming2010/ 觀賞。

Posted in C/C++, Linux, 程式設計 | Leave a comment

Linux C socket, fork(), select(), and Pthread programming

I’ve finished my project about Linux socket using select(), fork(), and pthread.There are some recommended and useful resources:1. Programming in C UNIX System Calls and Subroutines using C    It introduces socket, pthread, fork, and RPC(Remote Procedure Call).2. SAS/C Library Reference: Socket … Continue reading

Posted in C/C++, Linux, 程式設計, 網路 | 1 Comment

Data Mining Libraries and Packages

  I’ve found some data mining libraries (source codes) and packages.  You can see the following resource list to download: Data Mining with SQL Server 2005 Apriori algorithm using C# and silverlight gSpan: Frequent Graph Mining Package gpuminer: Parallel Data Mining … Continue reading

Posted in C/C++, Java, 程式設計, 資工, 軟體(Software) | Leave a comment

C++ 2011 發布囉

靠C++吃飯的程式設計師有福了! C++ 2011 Standard 已經發布了! ISO案號為ISO/IEC 14882:2011 http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=50372

Posted in C/C++, 程式設計 | Leave a comment

[C++] Template typedef 的用法

  This GotW exists to answer a recurring question about C++ syntax: When, and how, could you make use of a template typedef?   Observably, the answer is here: Template Typedef

Posted in C/C++, 程式設計 | Leave a comment

[資工][影像處理] BMP格式及其程式寫作

上個學期,在忙得焦頭爛額之際,惡補了讀取基本圖檔BMP格式的方法。參考了以下解說: BMP圖例說明:http://jinnsblog.blogspot.com/2009/08/bmp-format-graphic-illustration.html BMP每個欄位的解說:http://crazycat1130.pixnet.net/blog/post/1345538#mark-3 BMP補充說明:http://www.wretch.cc/blog/benjay207/12157833 最後自己寫了一個BMP讀檔的例子,並進行Discrete Cosign Transformation (DCT)。可按下方圖示下載程式碼。

Posted in C/C++, 程式設計, 資工 | Leave a comment

[資工] Genetic Algorithms

想要研究基因演算法的人,可先參考下面網站的介紹:Introduction to Genetic Algorithmshttp://www.obitko.com/tutorials/genetic-algorithms/index.php 若進一步想要實做或是沿用別人開發好的函式庫,可以到下面網站下載:GAlib: A C++ Library of Genetic Algorithm Componentshttp://lancet.mit.edu/ga/

Posted in C/C++, 程式設計, 資工 | Leave a comment

[Java] Java 呼叫C/C++ DLL

[Java]Java呼叫C/C++ DLLhttp://hatsukiakio.blogspot.com/2009/12/javajavacc-dll.html 有關Runtime.getRuntime().exec();http://www.programmer-club.com/ShowSameTitleN/java/12924.html JNI Call C++的問題http://www.javaworld.com.tw/jute/post/view?bid=5&id=240725 When Runtime.exec() won’thttp://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=3 Java Tip 17: Integrating Java with C++http://www.javaworld.com/javaworld/javatips/jw-javatip17.html?page=2

Posted in C/C++, Java, 程式設計 | Leave a comment

[C] Linked List

坐火車時無聊,花了半小時的時間在練程式(用最單純的C Language),寫了一個List Data Structure. #include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct Node *NodePtr;/* Define “Node” structure */struct Node{ int nNumber; char sName[24]; NodePtr ptrNext;};typedef struct List *ListPtr;/* Define “List” structure */struct List{ NodePtr ptrHead;};/* Function: void fnInsertToListHead(ListPtr ptrListL, NodePtr ptrTargetNode)* Brief: Insert … Continue reading

Posted in C/C++, 程式設計 | Leave a comment

[C/C++] 資訊安全常用演算法函式庫

在看資訊安全論文的時候,偶然下發現的演算法函式庫。 請至http://www.shamus.ie/index.php?page=Downloads 下載。 此函式庫為C/C++撰寫而成,包含了RSA的encode與decode、橢圓曲線的gen與degen等等。

Posted in C/C++, 資工, 資訊安全 | Leave a comment