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

📄 l5.1c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1C
字号:
#print(Section 1.5)Write a program which reads one character fromits input; if that character is ? it prints "yes",otherwise it prints "no".Compile it, test it, and then type ready.#once #create Ref1? is here#once #create Ref2no ? at beginning#usera.out <Ref1 >test1a.out <Ref2 >test2grep yes test1 >/dev/null || grep no test2 >/dev/null#succeedThis is one possible solutionmain(){	if (getchar() == '?')		printf("yes\n");	else		printf("no\n");}The indenting and general formatting of C programsshould be done so you make the structure clear,like the code above.#log#next5.1d 10

⌨️ 快捷键说明

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