1003 C语言输入以某个特殊输入为结束标志

输入不说明有多少个Input Block,但以某个特殊输入为结束标志。     C语法: while(scanf("%d",&n) && n!=0 ) {     .... } C++语法: while( cin >> n && n != 0 ) {     .... }   #include <stdio.h> int main(){ int a,b; while(sca
相关文章
相关标签/搜索