在此新闻组(clc)中的C程序中的输入行。基本上 使用提供的流,没有缓冲区,基本的东西在上获取无符号值。该代码还说明了根据limits.h预先检查 计算不会溢出。 - "行政当局将一名男子投入监狱的权力没有制定法律规定的任何指控,特别是否认他同行的判决,是在最高学位 可恶,是所有极权主义政府的基础,无论是纳粹还是共产党。 - W.丘吉尔,1943年11月21日.... snip ...See my post of 2006-01-31, subject line "checking and verifyinginput line in a C program", in this newsgroup (c.l.c). Basicallyuse the provided streams, without buffers, and base things onacquiring unsigned values. That code also illustrates precheckingthat a calculation will not overflow, based on limits.h.--"The power of the Executive to cast a man into prison withoutformulating any charge known to the law, and particularly todeny him the judgement of his peers, is in the highest degreeodious and is the foundation of all totalitarian governmentwhether Nazi or Communist." -- W. Churchill, Nov 21, 1943 这篇关于输入长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 02:31