⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 l33.1a

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1A
字号:
#printWrite a main program which counts the number of command-line argumentsit has which begin with the letter 'b'.  Print theresult in decimal.  Compile and test it as usual.Then type "ready".#usera.out abc bcd efg rpq b bbvd  >xxxgrep 3 xxx >/dev/null#succeed/*  a possible solution */main(argc, argv)char *argv[];{	int i, k;	for(i=k=0; i<argc; i++)		if (argv[i][0] == 'b')			k++;	printf("%d\n", k);}#log#next37.1a 10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -