返回信息流帮我做个程序吧 哈哈
Write an ANSI C code. Use a Makefile to build it (including compile and link) into
binary file.
The function of this binary file should be: Given a string, each substring within it is
separated by a punctuation, such as the Table key ('\t ') or comma , and so on. Please
split the string according to the punctuation , using the following data structure and
function, and finally output the result.
struct SizedString
{ //the start position of the string
//the length of the string
};
/*
*SimpleBreak, split string according to the punctuation
*Given string "a,b,c ", the punctuation is ','then output three substrings, "a"?¢"b"?¢
"c"
*@param[in] strin : the inputted string
*@param[in] chSep : the punctuation used to separate string
*@param[out] pStrOut : the output strings
*@param[inout] uStrCount : the size of pStrOut (that is the number of substrings
obtained) , output the number of substrings
*/
void Simplebreak(SzieString strin, char chSep,SizedString *pStrOut, unsigned
&uStrCount).
这是一条镜像帖。来源:北邮人论坛 / inner-mongolia / #14108同步于 2008/6/15
该镜像源已超过 30 天没有更新,可能在源站已被删除。
InnerMongolia机器人发帖
谁是linux牛牛?
YY
2008/6/15镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。