本答案对应课程为:点我自动跳转查看
本课程起止时间为:2020-02-29到2020-07-16
本篇答案更新状态:已完结

【作业】chapter 1 Exercise

1、 问题:Exercise 1-1.Run the "hello,world" program on your system. Experiment with leaving out parts of the program, to see what error messages you get. 
评分规则: 【  

2、 问题:Exercise 1-2. Experiment to find out what happens when printf’s argumentstring contains \c, where c is some character not listed above. 
评分规则: 【  

3、 问题:Exercise 1-3. Modify the temperature conversion program to print a heading above the table. 
评分规则: 【  

4、 问题:Exercise 1-4. Write a program to print the corresponding Celsius to Fahrenheit table. 
评分规则: 【  

5、 问题:Exercise 1-5. Modify the temperature conversion program to print the table in reverse order, that is, from 300 degrees to 0. 
评分规则: 【  

6、 问题:Exercise 1-6. Verify that the expression getchar!=EOF is 0 or 1.
评分规则: 【  

7、 问题:Exercise 1-7. Write a program to print the value of EOF. 
评分规则: 【  

8、 问题:Exercise 1-8.Write a program to count blanks, tabs, and newlines.
评分规则: 【  

9、 问题:Exercise 1-9. Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank.
评分规则: 【  

10、 问题:Exercise 1-10. Write a program to copy its input to its output, replacing each tab by \t, each backspace by \b, and each backslash by\.This makes tabs and backspaces visible in an unambiguous way. 
评分规则: 【  

11、 问题:Exercise 1-11.How would you test the word count program? What kinds of input are most likely to uncover bugs if there are any?
评分规则: 【  

12、 问题:Exercise 1-12. Write a program that prints its input one word per line. 
评分规则: 【  

13、 问题:Exercise 1-13.Write a program to print a histogram of the lengths of words in its input.It is easy to draw the histogram with the bars horizontal;a vertical orientation is more challenging. 
评分规则: 【  

14、 问题:Exercise 1-14. Write a program to print a histogram of the frequencies of different characters in its input.
评分规则: 【  

15、 问题:Exercise 1-15. Rewrite the temperature conversion program of Section 1.2 to use a function for conversion.
评分规则: 【  

16、 问题:Exercise 1-16. Revise the main routine of the longest-line program so it will correctly print the length of arbitrarily long input lines, and as much as possible of the text.
评分规则: 【  

17、 问题:Exercise 1-17. Write a program to print all input lines that are longer than 80 characters.
评分规则: 【  

18、 问题:Exercise 1-18. Write a program to remove trailing blanks and tabs from each line of input, and to delete entirely blank lines.
评分规则: 【  

19、 问题:Exercise 1-19. Write a function reverse(s) that reverses the character string s. Use it to write a program that reverses its input a line at a time. 
评分规则: 【   

20、 问题:Exercise 1-20. Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. Should n be a variable or a symbolic parameter?
评分规则: 【  

本门课程剩余章节答案为付费内容
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦

   

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注