2012年(62)
发布时间:2012-12-24 11:01:36
#include <iostream>using namespace std;template<typename T> class X{ T x;public: X(T i):x(i){} void print() { cout<<x<<endl; } };int main(){ X<int> ob......【阅读全文】
发布时间:2012-12-24 10:59:12
很有趣,在一些场合也很有用的东西,昨天从老张那里淘来了。 test.c #include <stdio.h>#include <stdlib.h>extern char * _binary_test_c_start;int main(){ printf("%s", (char *)&_binary_test_c_start);} Makefile SRC = test.cTAR ......【阅读全文】
发布时间:2012-12-24 10:53:58
比较具有收藏价值,用到的时候拿出来直接用了。 配置文件的格式如下: [COMMON]#common fileport = 100login = /usr/bin/login 函数: int GetProfileString(char * profile, char * AppName, char * KeyName, char * KeyVal ){ char appname[20],keyname[20];&nb......【阅读全文】