隨筆-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 華夢行 閱讀(85) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 汉寿县| 兴安盟| 密山市| 东辽县| 新津县| 合山市| 新疆| 明水县| 霸州市| 巴中市| 霍林郭勒市| 定西市| 新巴尔虎左旗| 仁寿县| 湛江市| 天祝| 会宁县| 和平区| 休宁县| 藁城市| 清水县| 汉川市| 邢台县| 大安市| 桓仁| 始兴县| 岳西县| 寻甸| 那坡县| 顺义区| 青田县| 富顺县| 泽普县| 吴江市| 怀远县| 胶州市| 徐闻县| 云安县| 铜川市| 道真| 绩溪县|