tr ÄǸö-cÑ¡ÏîʲôÒâ˼£¿
û¿´Ã÷°×˸ø¾Ù¸öÀý×Ó½²ÏÂ
HTML code:
Synopsis:
tr [OPTION]... SET1 [SET2]
`tr' copies standard input to standard output, performing one of the
following operations:
* translate, and optionally squeeze repeated characters in the
result,
* squeeze repeated characters,
* delete characters,
* delete characters, then squeeze repeated characters from the
result.
The SET1 and (if given) SET2 arguments define ordered sets of
characters, referred to below as SET1 and SET2. These sets are the
characters of the input that `tr' operates on. The `--complement'
(`-c', `-C') option replaces SET1 with its complement (all of the
characters that are not in SET1).
¼òµ¥À´Ëµ, ¾ÍÊDz¹¼¯µÄÒâ˼
lz¿ÉÒԱȽÏÒ»ÏÂ
$ echo abccabacca | tr -c ab 0
$ echo abccabacca | tr ab 0
$ echo abccabacca | tr -cs ab 0
Ïà¹ØÎÊ´ð£º
ÓÃÕâ±¾ÊéÈëÃÅÔõôÑùÄØ ¸úÌ·ºÆÇ¿µÄÏà±ÈÈçºÎ£¿ лл
ÎÒ°ÑÕâ±¾¿´Á˼¸Æª£¬È·ÊµºÜºÃµÄÊé¡£¾Í²»ÒªÄÃËü¸ú Ì· µÄÊé±ÈÁË£¬ Ì· µÄÊéÒªÕÕ¹ËÈ«¹ú¶ÁÕß¡£
²»¿ÉͬÈÕ¶øÓï
Ò»¸öÊǹúÍâµÄ£¬Ò»¸öÊǹúÄÚµÄ
ѧÍêc primer ......
¹¤×÷ÄÚÈÝ Ñз¢
×ʸñÒªÇó£º
211ºÍÖØµãԺУ±¾¿Æ 3Ä깤×÷¾Ñé
211ºÍÖØµãԺУ˶ʿ 1Ä깤×÷¾Ñé
ÆÕͨԺУÔÚ¹¤×÷ÄêÏÞÉϸ÷¼Ó1Äê
ÓÐͨÐÅÏà¹Ø¿ª·¢¾ÑéÕßÓÅÏÈ£¬µ±È»C/C++ »ù´¡ÒªÔúʵ
à ......
//C ½Ó¿Ú
extern "C"
{
TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);
}
//ÎÒÔÚC#ÖÐÉùÃ÷
//µ÷ÓÃC DLL Öеĺ¯Êý
[DllImport("OCRapi.dll&quo ......
ÄÚÈÝÉæ¼°£ºC¡¢C++¡¢STL¡¢VC++¡¢MFC¡¢COM¡¢ATL¡¢WindowsÍøÂç±à³Ì¡¢Êý¾Ý¿â±à³Ì¡¢WindowsÇý¶¯±à³Ì¡¢Èí¼þ¹¤³Ì¡¢Windows²Ù×÷ϵͳ±à³Ì£¬µÈµÈ·½Ãæ¡£
ÏÂÔØµØÖ·£ºhttp://www.cctry.com/forumdisplay.php?fid=46
......
ÎÒÏëÓÃc/sdk listviewµÃµ½ÏÂÃæµÄЧ¹û£¬ÓÐÈË˵×ö±íÍ·ÐèÒª×Ի棬´´½¨Ê±»¹Òª¼ÓLVS_OWNERDRAWFIXEDÀàÐÍ£¬È»ºó´¦Àí¸¸´°¿ÚµÄWM_DRAWITEMÏûÏ¢¡£
ÄÄλÄܰï°ïæ¸ø¸öÀý×Ó´úÂ룿 ×îºÃÊÇC/SDKµÄ¡£
ÎÒÐèÒªµÃµ½ÕâÑùµ ......