摘要:
c语言中使用putchar显示字符串 1、 #include <stdio.h> int put(char x[]) { int i = 0; while(x[i]) putchar(x[i++]); } int main(void) { char str[128]; printf("str: ") 阅读全文
posted @ 2021-05-26 12:23
小鲨鱼2018
阅读(433)
评论(0)
推荐(0)
摘要:
1、 #include <stdio.h> int search(char x[], int c) { int i = 0, j = 0; while(1) { if(x[i] == c) { j++; } if(x[i] == '\0') break; i++; } return j == 0 ? 阅读全文
posted @ 2021-05-26 11:38
小鲨鱼2018
阅读(66)
评论(0)
推荐(0)

浙公网安备 33010602011771号