首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

帮忙翻译一下这句话,看不大明白,Beginning Linux Programming里面的,该如何处理

2012-05-12 
帮忙翻译一下这句话,看不大明白,Beginning Linux Programming里面的Remember that a Linux shell normally

帮忙翻译一下这句话,看不大明白,Beginning Linux Programming里面的
Remember that a Linux shell normally performs
wild card expansion of filename arguments before argc and argv are set, whereas the MS-DOS shell
expects programs to accept arguments with wild cards and perform their own wild card expansion.

英文的书,看不懂的词稍微翻译一下基本能看懂,但是上面这句话怎么也看不懂。。。希望能帮忙解释一下,谢谢!

[解决办法]
linux的shell会预先处理参数中的*,?等东西

#include<stdio.h>
int main(int argc,char*argv[])
{
int i;
for(i=0;i<argc;i++)puts(argv[i]);
}
这个程序,你在linux这样运行program *,就会打印出当前目录的所有文件
[解决办法]
linux 的shell 通常会预先替你处理 参数中的通配符。
而windows的dos shell 期望用户的程序自己处理通配符、

热点排行