流程图
 
 代码
#include <stdio.h>
int main()
{
	int count=0;
	printf("请输入英文字符,回车确认:");
	
	while (getchar()!='\n')
	{
		count= count +1;
		
	}
	printf("共输入=%d个字符\n", count);
	system("pause");
	return 0;
}
请输入英文字符,回车确认:hello
共输入=5个字符
请输入英文字符,回车确认:hello my name is mg
共输入=19个字符














![[LeetCode]-225. 用队列实现栈](https://img-blog.csdnimg.cn/de34221d0eb844148091245e07e4b19b.png)




