l5.2b
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2B 代码 · 共 29 行
2B
29 行
#print(Section 1.5)Write a program which reads a character from itsinput and tests whether that character is larger than100 in numeric value. If so, read two morecharacters, and print the value of the second of themin octal. Compile and test your program, then type "ready".#once #create Ref1u V has value 126#once #create Ref2. V should not be processed#usera.out <Ref1 >test1a.out <Ref2 >test2grep 126 test1 >/dev/null || cmp -s test2 /dev/null#succeedOne way:main(){ if (getchar() > 100) { getchar(); printf("%o\n", getchar()); }}#log#next5.1c 10
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?