隨筆-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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 高唐县| 革吉县| 沙河市| 巴东县| 晋江市| 峨山| 宁陕县| 博罗县| 彰化县| 闽侯县| 泰安市| 仁化县| 靖边县| 台湾省| 陆丰市| 东阿县| 内黄县| 大方县| 乐昌市| 蕲春县| 嘉定区| 微博| 英吉沙县| 辽宁省| 克拉玛依市| 巍山| 孝感市| 岱山县| 准格尔旗| 富蕴县| 平昌县| 太仓市| 通渭县| 确山县| 榆林市| 深泽县| 含山县| 英山县| 平武县| 武鸣县| 凤翔县|