📄 l19.1a
字号:
#printWrite a subroutine which counts the number of times it hasbeen called and returns that count each time. Name it"count()". Write it on a file named "count.c". Compileand test it; type "ready" when happy.#once #create Ref23080#once #create tzaqc.cmain() { int i; for (i = 0; i < 23079; i++) count(); printf("%d\n", count());}#usercc tzaqc.c count.oa.out >value#cmp value Ref#succeed/* one way */count(){ static int n = 0; return(++n);}#log#next30.1a 1020.1a 5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -