STDIN
来源:互联网 发布:cn域名备案和com 编辑:程序博客网 时间:2024/05/16 17:50
#! /usr/bin/perl
$number1=<STDIN>;
$number2=<STDIN>;
$i=0;
while($i<$number2){
print "$number1/n";
$i++;
}
结果
C:/Perl/test>perl 2_1.pl
hello
3
hello
hello
hello
不是
C:/Perl/test>perl 2_1.pl
hello
3
hello
hello
hello
因为:<STDIN>中的字符串通常由一个换行符作为结尾
- STDIN
- stdin
- stdin
- fflush(stdin)
- fflush(stdin)
- fflush(stdin)
- php STDIN
- fflush(stdin)
- php STDIN
- rewind(stdin)
- fflush(stdin)
- rewind(stdin);与fpurge(stdin);的区别
- fflush(stdin) fflush(stdout)
- stdin 和 STDIN_FILENO
- stdin stdout 说明
- fflush(stdout); fflush(stdin);
- stdin,stdout,stderr
- stderr,stdin,stdout
- "symbol lookup error"问题解决
- 新的一天
- 怎样学习vc
- Apache Commons BeanUtils包学习(2)-beanutils.PropertyUtils, beanutils.DynaBean
- Silverlight+WCF 新手实例 象棋 棋子(三)
- STDIN
- Windows 2003超级终端
- ASEconvert函数中的日期样式
- 四大排序函数
- linux的ls的所有参数
- Silverlight+WCF 新手实例 象棋 棋子定位与象棋类(四)
- 表格循环
- Silverlight+WCF 新手实例 象棋 棋子移动-吃子(五)
- 关于google地图服务在android上的实现的几个链接