C语言中如何给一个数组输入一组总数未知的数

日期:2021-08-01 22:12:20 人气:1

C语言中如何给一个数组输入一组总数未知的数

#include<stdio.h>

#include<ctype.h>

int main()

{

int a[1000];

char c;

int i=0;

int n=0;

while((c=getchar())!='\n')

{

if(isdigit(c))

{

ungetc(c,

    A+
热门评论