锘??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久久婷婷国产一区二区| 色婷婷综合久久久久中文字幕 | 国产亚洲精品自在久久| 久久夜色精品国产欧美乱| 69久久精品无码一区二区| 99久久精品久久久久久清纯| 亚洲国产婷婷香蕉久久久久久| 久久久久久久97| 久久精品国产亚洲一区二区| 欧美久久综合九色综合| 久久久久久亚洲精品成人| 久久久无码精品亚洲日韩软件| 99精品国产99久久久久久97| 国产精品美女久久久久av爽| 久久久久久国产精品无码下载| 国产韩国精品一区二区三区久久| 亚洲国产精品成人AV无码久久综合影院 | 亚洲国产香蕉人人爽成AV片久久 | av午夜福利一片免费看久久 | 久久99精品久久久久久久不卡| 国产午夜电影久久| 久久天天躁狠狠躁夜夜avapp | 成人久久精品一区二区三区| 香蕉99久久国产综合精品宅男自| 久久66热人妻偷产精品9| 亚洲国产香蕉人人爽成AV片久久| 国产99久久久国产精品~~牛| 久久亚洲AV成人无码电影| 久久中文字幕人妻丝袜| 性欧美大战久久久久久久| 久久精品人妻一区二区三区| 99热都是精品久久久久久| 久久99精品久久只有精品| 色综合久久久久综合体桃花网| 中文字幕久久亚洲一区| 久久综合久久鬼色| 国内精品欧美久久精品| 久久久久久亚洲精品无码| 久久久精品久久久久久| 欧美成a人片免费看久久|