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
相关文章推荐
- Selected solutions to exercise of "The C Programming Language" 2e (Part 1)
- Selected solutions to exercise of "The C Programming Language" 2e (Part 2)
- Selected solutions to exercise of "The C Programming Language" 2e (Part 3)
- Selected solutions to exercise of "The C Programming Language" 2e (Part 4)
- Selected solutions to exercise of "The C Programming Language" 2e (Part 5)
- Selected solutions to exercise of "The C Programming Language" 2e (Part 6)
- The C Programming Language——Exercise solutions of the chapter one (1st)
- Notes to the Reader(Chapter 1 of The C++ Programming Language)
- Reading notes of 'The Art of Multiprocessor Programming' -- Chapter 1 & Appendix B
- "Introduction to the Theory of Computation" Reading notes - Ch. 0 and 1
- mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\Rel
- 读书笔记之-----"The C Programming Language"
- Exception Handling(Chapter 14 of The C++ Programming Language)
- NT_iOS笔记—add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plis
- Q&A: HOW TO FIX XCODE’S "USED AS THE NAME OF THE PREVIOUS PARAMETER" WARNING
- Templates(Chapter 13 of The C++ Programming Language)
- Class Hierarchies(Chapter 15 of The C++ Programming Language)
- Library Organization and Containers(Chapter 16 of The C++ Programming Language)
- How to fix the dreaded "java.lang.OutOfMemoryError- PermGen space" exception (classloader leaks)
- "The C Programming Language", 2nd edition, Kernighan and Ritchie