l11.1a
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 36 行
1A
36 行
#printWith your 'cc' command you can give the name ofan object file to be loaded with your program.For example cc x.c y.owill load the previously compiled program 'y' along withthe program 'x' to be compiled now.The file "getnum.o" contains a subroutine "getnum" whichreads an integer and returns its value.Write a program which reads a number and decideswhether or not it is a multiple of 23. If so print"yes" and otherwise print "no".Compile and test; then type "ready".#once #create Ref123000#once #create Ref223001#once cp %s/getnum.o .#usera.out <Ref1 >z1a.out <Ref2 >z2grep yes z1 >/dev/null || grep no z2 >/dev/null#succeed/* One way: */main() { if (getnum()%23 == 0) printf("yes\n"); else printf("no\n");}#log#next12.1a 10
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?