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