随笔分类 -  C

C语言学习记录
摘要:/************************************************************************** * * Copyright (c) 2003 Informatica Corporation. This file contains * mate... 阅读全文
posted @ 2014-08-22 00:52 Azik 阅读(1035) 评论(0) 推荐(0)
摘要:package mainimport ( "database/sql" "encoding/xml" "fmt" _ "github.com/go-sql-driver/mysql" "io/ioutil" "os")type Conf struct { X... 阅读全文
posted @ 2014-04-25 12:40 Azik 阅读(978) 评论(0) 推荐(0)
摘要:1 package main 2 3 import ( 4 "fmt" 5 "html/template" 6 "net/http" 7 "strings" 8 "log" 9 _ "github.com/go-sql-driver/mysql"10 "database/sql"11 )12 13 type WebMux struct{14 }15 16 func (p *WebMux) ServeHTTP(w http.ResponseWriter,r 阅读全文
posted @ 2014-04-07 11:35 Azik 阅读(992) 评论(0) 推荐(0)
摘要://LibHelloWorld.hvoid SayHelloWorld(char * name);//HelloWorld.c#include #include "LibHelloWorld.h"void SayHelloWorld(char * name){ printf("Hello,%s!\n",name);}gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"HelloWorld.d" -MT"HelloWorld.d" -o"He 阅读全文
posted @ 2013-11-17 09:38 Azik 阅读(574) 评论(0) 推荐(0)
摘要:#include #include #include #include int main(int argc, char* argv[]) { //declare DB_ENV *ptr_db_env; DB *ptr_db; DBT key, data; u_int32_t env_flags, db_flags; FILE *fptr_db_env_err_log, *fptr_db_err_log; int ret; int sel; int userid; char *username; username = (char*... 阅读全文
posted @ 2013-11-17 00:55 Azik 阅读(260) 评论(0) 推荐(0)