您的位置:首页 > 其它

Selected solutions to exercise of "The C Programming Language" 2e (Part 7, End of Chapter 1)

2006-02-19 23:21 941 查看

Exercise 1-23

Write a program to remove all comments from a C program. Don't forget to handle quoted strings and character constants properly. C comments do not nest.

Solution by others
http://users.powernet.co.uk/eton/kandr2/krx123.html

Exercise 1-24

Write a program to check a C program for rudimentary syntax errors like unbalanced parentheses, brackets and braces. Don't forget about quotes, both single and double, escape sequences, and comments. (This program is hard if you do it in full generality.)

Solution by others
http://users.powernet.co.uk/eton/kandr2/krx124.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐