原创 C語言基於對象編程實現封裝
/********************************* * C語言基於對象編程實現封裝 * * * *2012年04月12日 星期四 17時25分18
原创 C語言操作sqlite3對錶的插入和查詢
#ifndef __MYDB_H #define __MYDB_H #include <stdio.h> #include <string.h> #include "sqlite3.h" #define DB_NAME "te
原创 嵌入式C語言函數指針數組
#include <stdio.h> typedef int (*fun_t)(int , int); /*構造一個枚舉值對應的操作符標示(ID)*/ enum{ OPER_ADD = 0, OPER_SUB,
原创 完全回調
/* *2012年03月29日 星期四 16時45分36秒 *full callback function */ #include <stdio.h> typedef unsigned int u_int; typedef u_i
原创 判斷一個數是不是素數
#include<stdio.h> #include"isPrime.h" int main(int argc,char **argv) { int n; bool flag; n = getInteger();
原创 C語言實現二叉樹的遍歷
#include <stdio.h> #include <stdlib.h> typedef char TElemType ; typedef struct TNode { TElemType data; str
原创 彩票(35選7)
#include<stdio.h> #include<stdlib.h> #include<time.h> #define MAX 7 void bs(int s2[]); void print(int s3[]); void as()
原创 簡單mp3的實現
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <sys/ioctl.h>
原创 QT下TCP協議通信的簡單Server端
/********************** *Write to 5 July 2012* *By Mr Rao * **********************/ #ifndef _SERVER_H_ #d