?? l33.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 + -