隨筆-295  評論-26  文章-1  trackbacks-0

          #include <stdio.h>
          #include <string.h>
          hello(){
          char *hello="dddd大點的";
          int i;
          for(i=0;i<strlen(hello);i++){
          printf("%s\n",&hello[i]);
          }
          }
          void testStr(){
          int i=0;
          ?for(i=0;i<128;i++)
          ?{
          printf("%c",(char)i);
          ?}
          }
          void testmy(){
          ?char *hello="??大點的";

          ?char hellodd[]={hello};
          ?unsigned char test= hellodd[2];
          ?if(test>137){

          ?printf("大于%u",test);
          ?}else
          ?{
          ??printf("小于");
          ?}
          //putchar((char)hello[5]);
          printf("字符:%d \n",hellodd[2]);
          printf("%d",strlen( hellodd));

          }
          //相當于substring
          teststrcopy(){
          char *s="到的得到";
          char d[]={"? "};
          //strncpy(d,s+0,2);
          strncpy(d,s,2);
          printf("%s\n",d);
          }
          int main(void){
          //testmy();
          ?//teststrcopy();
          ?return 0;
          }


          ?



          大盤預測 國富論
          posted on 2009-03-10 15:23 華夢行 閱讀(83) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 舟曲县| 岚皋县| 苍溪县| 巴楚县| 舞阳县| 绍兴市| 滁州市| 探索| 鸡西市| 积石山| 黄梅县| 乌恰县| 阜平县| 茌平县| 大埔县| 聂拉木县| 太湖县| 古田县| 龙岩市| 宜阳县| 罗定市| 鹿邑县| 贵州省| 会东县| 屯昌县| 新兴县| 九江县| 呼和浩特市| 泌阳县| 锡林郭勒盟| 伊吾县| 房山区| 德保县| 特克斯县| 巴南区| 柯坪县| 阳城县| 平远县| 彭山县| 阳泉市| 长垣县|