输入一个字符串,字符串有一个中文的冒号,如何在冒号出截止。
#include<stdio.h> int main() { int a[100]; scanf("%[^:]s",a); printf("%s\n",a); return 0; }
while scanf(“c%”,&ch)!🟰':'