锘??xml version="1.0" encoding="utf-8" standalone="yes"?>99久久精品免费看国产免费,中文字幕无码久久人妻,国产欧美久久久精品影院http://www.shnenglu.com/masiyou/category/12019.html娌夋濆線浜嬬珛孌嬮槼錛屽綋鏃跺彧閬撴槸瀵誨父zh-cnThu, 08 Oct 2009 06:15:39 GMTThu, 08 Oct 2009 06:15:39 GMT60鍏充簬strtok鍑芥暟http://www.shnenglu.com/masiyou/archive/2009/10/07/98038.html嫻敓濡傛ⅵ嫻敓濡傛ⅵWed, 07 Oct 2009 11:14:00 GMThttp://www.shnenglu.com/masiyou/archive/2009/10/07/98038.htmlhttp://www.shnenglu.com/masiyou/comments/98038.htmlhttp://www.shnenglu.com/masiyou/archive/2009/10/07/98038.html#Feedback0http://www.shnenglu.com/masiyou/comments/commentRss/98038.htmlhttp://www.shnenglu.com/masiyou/services/trackbacks/98038.html#include <string.h>
#include <stdio.h>

int main(void)
{
   char input[16] = "abc,dhh,eee";
   char *p;

   /* strtok places a NULL terminator
   in front of the token, if found */
   p = strtok(input, ",");
   if (p)   printf("%s\n", p);

   /* A second call to strtok using a NULL
   as the first parameter returns a pointer
   to the character following the token  */
   p = strtok(NULL, ",");
   if (p)   printf("%s\n", p);

   p = strtok(NULL, ",");
   if (p)   printf("%s\n", p);
   return 0;
}

MSDN涓婄殑鍘熻瘽錛?
On the first call to strtok, the function skips leading delimiters and returns a pointer to the first token in strToken, terminating the token with a null character. More tokens can be broken out of the remainder of strToken by a series of calls to strtok. Each call to strtok modifies strToken by inserting a null character after the token returned by that call. To read the next token from strToken, call strtok with a NULL value for the strToken argument. The NULL strToken argument causes strtok to search for the next token in the modified strToken. The strDelimit argument can take any value from one call to the next so that the set of delimiters may vary.

絎簩嬈″弬鏁扮珶鐒跺彲浠ULL
鏄洜涓簊trtok涓敤static鎸囬拡璁頒綇浜?jiǎn)涓妺啤澶勭悊鍚庣殑浣嵕|?br>
鎴戞兂鏄洜涓鴻繖涓嚱鏁板唴閮ㄥ疄鐜版椂錛岀敤鍒頒簡(jiǎn)闈?rùn)鎬佸彉閲忥紝鑰岃涓嶈淇敼榪欎釜鍙橀噺錛屽氨鏄鏍規(guī)嵁絎竴涓弬鏁版潵紜畾錛?

褰撲負(fù)NULL鏃訛紝灝變笉鍐嶄慨鏀筍tatic鍙橀噺鐨勫間簡(jiǎn)錛?

榪欎釜闈?rùn)鎬佸彉閲忕殑浣滅敤錛屽氨鏄褰曞師濮嬪瓧絎︿覆鐨勯暱搴︾殑錛?



嫻敓濡傛ⅵ 2009-10-07 19:14 鍙戣〃璇勮
]]>
鏋氫婦涓庡搴旈」瀛楃涓茬殑杞寲http://www.shnenglu.com/masiyou/archive/2009/10/07/98025.html嫻敓濡傛ⅵ嫻敓濡傛ⅵWed, 07 Oct 2009 07:10:00 GMThttp://www.shnenglu.com/masiyou/archive/2009/10/07/98025.htmlhttp://www.shnenglu.com/masiyou/comments/98025.htmlhttp://www.shnenglu.com/masiyou/archive/2009/10/07/98025.html#Feedback0http://www.shnenglu.com/masiyou/comments/commentRss/98025.htmlhttp://www.shnenglu.com/masiyou/services/trackbacks/98025.html#include <iostream>

using namespace std;

enum language{java, c, pascal, fortran, vc, vb, cpp} lang;

char name[][10] = {
"java",
"c",
"pascal",
"fortran",
"vc",
"vb",
"cpp"
};

int main()
{
    lang = fortran;
    cout << name[lang] << endl;

    lang = java;
    cout << name[lang] << endl;

    lang = pascal;
    cout << name[lang] << endl;

    lang = (language) 6;//榪欎釜寮鴻漿緇忓吀
    cout << name[lang] << endl;
    return 0;
}



嫻敓濡傛ⅵ 2009-10-07 15:10 鍙戣〃璇勮
]]>
久久99热这里只有精品国产| 91精品国产91久久综合| 狠狠人妻久久久久久综合| 久久九九有精品国产23百花影院| 精品久久久久久久久午夜福利| 99精品国产在热久久无毒不卡| 国产精品无码久久四虎| 亚洲精品99久久久久中文字幕| 精品多毛少妇人妻AV免费久久| 亚洲国产成人久久综合一| 亚洲精品高清国产一线久久| 亚洲女久久久噜噜噜熟女| 狠色狠色狠狠色综合久久| 亚洲精品无码久久久久AV麻豆| 色婷婷综合久久久久中文 | 久久久噜噜噜久久中文字幕色伊伊 | 奇米影视7777久久精品人人爽| 久久亚洲AV成人无码国产| 久久久精品日本一区二区三区| 久久精品中文无码资源站| 亚洲综合精品香蕉久久网97| 国产精品美女久久福利网站| 国产AV影片久久久久久| 久久久婷婷五月亚洲97号色| 狠狠色丁香久久婷婷综合图片| 99久久国产亚洲高清观看2024| 久久久无码一区二区三区| 久久久久久久91精品免费观看| 久久精品99无色码中文字幕| 久久91综合国产91久久精品| 热99RE久久精品这里都是精品免费 | 国产成人精品综合久久久久| 久久九九久精品国产| 精品国产91久久久久久久| 青草国产精品久久久久久| 久久精品人人做人人爽电影| 综合久久一区二区三区| 国产精品免费久久久久电影网| 久久国产精品-久久精品| 久久精品国产一区| 99久久精品国产一区二区|