Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¡¾ÀíÂÛ֪ʶƪ¡¿Linux»ìºÏ±à³Ì+log4cpp


     ÓÉÓÚҪʹÓõ½log4cppµÄ¿â£¬¶ølog4cµÄ×ÊÁÏÊǷdz£µÄÉÙ£¬Ò²ÀÁµÃÈ¥Ñо¿ËüµÄÓ÷¨£¬ÓÚÊǾ;ö¶¨ÊÔÊÔ»ìºÏ±à³ÌÕßÍæÒâ¡£
      Ê×ÏÈÏÈÒýÓÃÏÂC++ËüµÄfather: StroustrupµÄһƪÎÄÕ¡¶C++ Style and Technique FAQ¡·£¨http://www2.research.att.com/~bs/bs_faq2.html£©ÀïµÄһС¸öƬ¶Î£º
Just declare the C function ``extern "C"'' (in your C++ code) and call it (from your C or C++ code). For example:
// C++ code
extern "C" void f(int); // one way
extern "C" { // another way
int g(double);
double h();
};
void code(int i, double d)
{
f(i);
int ii = g(d);
double dd = h();
// ...
}
The definitions of the functions may look like this:
/* C code: */
void f(int i)
{
/* ... */
}
int g(double d)
{
/* ... */
}
double h()
{
/* ... */
}
Note that C++ type rules, not C rules, are used. So you can't call function declared ``extern "C"'' with the wrong number of argument. For example:
// C++ code
void more_code(int i, double d)
{
double dd = h(i,d); // error: unexpected arguments
// ...
}
Just declare the C++ function ``extern "C"'' (in your C++ code) and call it (from your C or C++ code). For example:
// C++ code:
extern "C" void f(int);
void f(int i)
{
// ...
}
Now f() can be used like this:
/* C code: */
void f(int);

void cc(int i)
{
f(i);
/* ... */
}
Naturally, this works only for non-member functions. If you want to call member functions (incl. virtual functions) from C, you need to provide a simple wrapper. For example:
// C++ code:
class C {
// ...
virtual double f(int);
};
extern "C" double call_C_f(C* p, int i) // wrapper function
{
return p->f(i);
}
Now C::f() can be used like this:
/* C code: */
double call_C_f(struct C* p, int i);

void ccc(struct C* p, int i)
{
double d = call_C_f(p,i);
/* ... */
}
If you want to call overloaded functions from C, you must provide wrappers with distinct names for th


Ïà¹ØÎĵµ£º

LINUX·þÎñ½éÉÜ


LINUX
·þÎñ½éÉÜ£¨ÇåÎú°æ£©

·þÎñÁÐ±í£¨°´×Öĸ˳ÐòÅÅÁУ©
·þÎñÃû
±ØÐ裨ÊÇ/
·ñ£©
ÓÃ;ÃèÊö
×¢½â
acon
·ñ
ÓïÑÔÖ§³Ö
ÌØ±ðÖ§³Ö×óÊÖÊéдÓïÑÔ:
°¢À­²®Óï,
²¨Ë¹ÓïºÍÏ£²®À³Óï
acpi
·ñ
µçÔ´¹ÜÀí
ÊÖÌáµçÄÔµç³ØµçÉÈ¼à¿ØÆ÷
acpid
·ñ
¼àÌý¾«Áé½ø³Ì
´Ë½ø³Ì¼àÌý²¢·ÖÅäÄÚºËÖеÄacpi
ʼþ
adsl
·ñ
ÄÚ²¿ADSL
¿ ......

ÔÚǶÈëʽLinuxÏÂGPRSÉÏÍø·½°¸

Ó²/Èí¼þ»·¾³
 
»ùÓÚS3C2410µÄǶÈëʽϵͳ£¬COM1Á¬½ÓPC£¬COM2Á¬½ÓSIM300 GPRSÄ£¿é¡£
¸ÃϵͳÔËÐÐÔÚLinux 2.6.14²Ù×÷ϵͳÏ£¬Ê¹ÓÃpppÌ×¼þͨ¹ýSIM300½øÐÐPPP²¦ºÅ¡£
 
ÈÃLinuxÄÚºËÖ§³ÖPPP
 
½øÈëLinuxÄÚºËĿ¼£¬Ö´ÐÐ#make menuconfig
Network Device Support à
     &nb ......

Linux(Centos5.4)Éϰ²×°oracle10gR2(10.2.1)

ÎÒÓõÄÊÇCentos5.4 DVD¹âÅ̰²×°µÄlinux²Ù×÷ϵͳ£¬°²×°linuxµÄʱºòÑ¡ÉÏ¿ª·¢¹¤¾ß£¬Xmanager,ÓëÊý¾Ý¿âÏà¹ØµÄ°ü¡£
²Ù×÷ϵͳ°²×°Íê³ÉÖ®ºóÐèÒª½øÐÐһϵÁеÄÅäÖòÅÄܰ²×°oracle10g£¬ÏÂÃæ°ÑÖ÷Òª²½Öè¼Ç¼ÏÂÀ´¡£
1.°²×°Íê²Ù×÷ϵͳ֮ºó»¹ÊÇÓÐЩ°üûÓа²×°£¬È»¶ø°²×°oracle10gµÄʱºòÐèÒªÓõ½£¬Ã»Óа²×°µÄ°üÓÐ:
libXp-1.0.0-8.i386.rp ......

LinuxÐéÄâÄÚ´æ»ù´¡ÖªÊ¶

1.´Ó80386¿ªÊ¼£¬Intel´¦ÀíÆ÷µÄÏßÐÔ32±»·ÖΪ3¸öÓò£¬×î¸ßʮλΪ´ËÏßÐÔµØÖ·ÔÚҳĿ¼µÄË÷Òý£»ÖмäʮλΪ´ËÏßÐÔµØÖ·ÔÚÒ³±íÖеÄË÷Òý£»×îµÍ12ΪÎïÀíµØÖ·µÄµÍ12루Ҳ¿ÉÒÔ˵ÊÇÒ³ÄÚÆ«ÒÆÁ¿£©¡£Ã¿¸ö½ø³ÌÒ»¶¨Óи÷×Ô¶ÀÁ¢µÄÒ³±í£¨×¢Ò⣺ÕâÀï˵µÄÊǽø³Ì£¬¶ø²»ÊÇÏ̡߳£ÔÚlinuxÀïÏß³ÌÆäʵ¾ÍÊÇÇáÁ¿¼¶µÄ½ø³Ì£¬ËûÃÇÊÇÁ¬Ò³Ä¿Â¼¶¼ÏàͬµÄ½ø³Ì£¬Ö»ÊÇ ......

LinuxµÄ¼Æ»®ÈÎÎñatÃüÁî

Technorati ±êÇ©: linux,at Ãû³Æ : at
ʹÓÃȨÏÞ : ËùÓÐʹÓÃÕß
ʹÓ÷½Ê½ : at -V [-q queue] [-f file] [-mldbv] TIME
˵Ã÷ : at ¿ÉÒÔÈÃʹÓÃÕßÖ¸¶¨ÔÚ TIME Õâ¸öÌØ¶¨Ê±¿ÌÖ´ÐÐij¸ö³Ìʽ»òÖ¸ÁTIME µÄ¸ñʽÊÇ HH:MMÆäÖÐµÄ HH ΪСʱ£¬MM Ϊ·ÖÖÓ£¬ÉõÖÁÄãÒ²¿ÉÒÔÖ¸¶¨ am, pm, midnight, noon, teatime(¾ÍÊÇÏÂÎç 4 µãïñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ