C语言基础:统计用户数组字符数量
#include <stdio.h> int main (void) { long character_count = 0; getchar(); while (! feof(stdin)) { getchar(); character_count++; } printf("The number of redirected characters is %ld\n", character_count); return 1; }
C语言基础:统计用户数组字符数量
#include <stdio.h> int main (void) { long character_count = 0; getchar(); while (! feof(stdin)) { getchar(); character_count++; } printf("The number of redirected characters is %ld\n", character_count); return 1; }