LinuxÏÂCÓïÑÔʵÏÖ×Ö·û´®×Ó´®Ìæ»»
ÓÉÓÚLINUX
CûÓжÔ×Ö·û´®×Ó´®Ìæ»»¹¦ÄÜ,ËùÒÔÎÒ×Ô¼ºÐ´ÁËÒ»¸östr_replaceº¯Êý,ʵÏÖÁË×Ö·û´®Ìæ»».
Çë´ó¼Ò²Î¿¼.
/*
* FUNCTION : str_replace
*
ABSTRACT : replace child string in a string.
*
PARAMETER :
*
char* str
the string that be replace
*
char* str_src source string
*
char* str_des destination string
*
RETURN :
*
0 OK
*
-1 FALSE
* CREATE : 2006-01-05
ZHANG.JINCUN
* NOTE
:
*/
int str_replace(char* str,char* str_src, char*
str_des){
char *ptr=NULL;
char buff[256];
char buff2[256];
int i = 0;
if(str !=
NULL){
strcpy(buff2, str);
}else{
printf("str_replace err!\n");
return -1;
}
memset(buff,
0x00, sizeof(buff));
while((ptr = strstr( buff2,
str_src)) !=0){
if(ptr-buff2 != 0) memcpy(&buff[i], buff2, ptr - buff2);
memcpy(&buff[i + ptr - buff2], str_des, strlen(str_des));
i += ptr - bu
Ïà¹ØÎĵµ£º
ÍøÉÏÒ»µÀ½ðɽµÄÃæÊÔÌ⣺
http://topic.csdn.net/u/20100524/14/0eff992a-2849-4db6-bdaa-d4a200e79b7c.html
Çë·Ö±ðÓÃC++µÄÃæÏò¶ÔÏóºÍ·ºÐÍ»úÖÆ£¬±àдʵÏÖTemplate MethodģʽµÄʾÀý´úÂ룬²¢±È½ÏÁ½ÖÖ·½Ê½¸÷×ÔµÄÓÅȱµã¡£
ÓÃÐ麯ÊýʵÏÖTemplate MethodµÄ·½Ê½¾Í²»¶à˵ÁË¡£Ó÷ºÐ͵ķ½Ê½ÊµÏÖ¶à̬ÔÚATLÀïÃæÓдóÁ¿µÄÓõ½£¡
·ºÐ͵ ......
´ÓÍøÉÏÏÂÁËһЩѧϰ×ÊÁÏ£¬¶¼ÊÇÎı¾Îļþ£¬Óà gedit ²é¿´¶¼ÊÇÂÒÂ룬ÓÃvim¿ÉÒÔÕý³£ÏÔʾ£¬ÎÒÖªµÀÕâÊÇ geditûÓÐÌí¼ÓÏàÓ¦Ö§³ÖµÄÄÚÂ룬ÎÒÒ²²»Ïë¼ÓÁË£¬ÓÃvim»¹ÊǶàÒ»µã£¬µ«ÊÇÈç¹ûÒªcopy µ½ÊÖ»úÉÏ¿ÉÄÜÒ²»áÂÒÂ룬×îºÃ±£ÏÕµÄ×ö·¨ÊÇ°ÑËüת³É±ê×¼µÄ±àÂë¸ñʽ utf-8.
Ê×ÏÈÎÒÃÇÈçºÎÖªµÀÎļþµÄ±àÂë¸ñʽÄØ£¬ÔÚ vim Àï ÃüÁî :set fileencodin ......
1.´ò¿ª
http://labs.adobe.com/downloads/flashplayer10_64bit.html
ÏÂÔØ Flash Player 10 for 64-bit Linux
2.½âѹºó¸´ÖƵ½/usr/lib64/mozilla/plugins
mv libflashplayer.so /usr/lib64/mozilla/plugins/libflashplayer.so
3.ÖØÆôfirefox£¬¿ÉÒÔÐÞ¸ÄflashĬÈÏ×ÖÌå
vi /etc/fonts/conf.d/49-sansserif ......
1. Ïà¹Øº¯Êý & ......