gpt4 book ai didi

c - 为什么它不打印结果?(我已经在输入后点击了ctrl+z(windows10))

转载 作者:太空宇宙 更新时间:2023-11-04 01:55:28 24 4
gpt4 key购买 nike

<分区>

为什么不打印结果?我已经在输入后点击了 Ctrl+Z

代码:

#include <stdio.h>
/*histogram of frequences of chars*/
main()
{
int charIn, numa, numb;
numa = numb = 0 ;
while ((charIn == getchar()) != EOF)
{
if (charIn =='a')
++numa;
if (charIn =='b')
++numb;
}
printf("A:%d\n",numa);
printf("B:%d\n",numb);
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com