摘要: #include #include #include int main(){ int i; char word[100]; scanf("%s",word); int len=strlen(word); for(i=1;i<=len;i++) { if(... 阅读全文
posted @ 2015-12-28 20:05 邻家那小孩儿 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int c,q=1; while((c=getchar())!=-1) { if(c=='"') { printf("%s",q?"``":"''"); ... 阅读全文
posted @ 2015-12-28 18:38 邻家那小孩儿 阅读(181) 评论(0) 推荐(0) 编辑
摘要: char* s1 = "123",字符串"123"这段内存是只读的,就是说其内容不能改变///char *s 这个是指申请一个地址空间 记录一个地址 1 #include 2 #include 3 char *s="`1234567890-=QWERTYUIOP[]\ASDFGHJKL;'ZXC... 阅读全文
posted @ 2015-12-28 18:12 邻家那小孩儿 阅读(373) 评论(0) 推荐(0) 编辑