摘要: 计算字符串里的字符个数,不要sizeof和strlen #include<stdio.h> int main() { char str[]="I love FishC.com!"; char *target=str; int count=0; while(*target++!='\0') { cou 阅读全文
posted @ 2021-09-01 15:14 好想成为一只鸟 阅读(45) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int a; int *p=&a; printf("请输入一个整数:"); scanf("%d",&a); printf("a=%d\n",a); printf("请再输入一个整数:"); scanf("%d",p); printf("a 阅读全文
posted @ 2021-09-01 11:40 好想成为一只鸟 阅读(51) 评论(0) 推荐(0)