My Approach
- Wikipedia Structure Programming
- Some starter templates
- Code Folding in VIM
- Avoid putting memory address first in comaprison (in C/C++)
- use of DEBUG macro in C
- utest script to test code against uDebug test files
Templates
I have several templates on the ToolBox page:
- Template 1 - reads data until a terminating value is reached
- Template 2 - reads data a specified number of times
- Template 3 - reads lines of data at a time until end of file (fgets)
- Template 4 - reads lines of data at a time until end of file (scanf)
C Template(s)
Java Template(s)
Python Template(s)
The Java and Python templates should give you a hint on how to do a generic UVA/Online Judge Submission. The C templates
give you four examples of various I/O approaches.
Return to Top of Page