发布时间:2019-03-09 11:49:12
bool CountSubStr(char * pShortString, char * pLongString){/*在这里实现功能*/int lens,lenl,i,j,cmpcount = 0;if(NULL == pShortString && NULL == pLongString){return false;}lens = (int)strlen(pShortString);lenl = (int)strlen(pLongString);if(0 == lens||0 == lenl){return false;}for(j = 0.........【阅读全文】
发布时间:2019-03-08 15:59:16
1. 下述哪种代码写法是正确的:(1)char *error_msg = "Resource not available to user.";int error_type = 3;/* ...do something... */printf("Error (type %s): %d\n", error_type, error_msg);(2)struct sParam{ int num; char msg[100]; int result;};struct .........【阅读全文】
发布时间:2013-12-15 18:51:02
DIRPATH="`dirname $0`"LOGFILE="$DIRPATH/StopProcess.log"echo "$0 start." >>$LOGFILEfunction KillExistScript(){ local _ProcessName=$1 local _ProcessPID="" local _ProcessAllPID="" local _Ret=0 if [ $# -ne 1 ]; then &nbs.........【阅读全文】