I am currently teaching someone C/C++ and I think
the best way to teach it is having him program lots
of exercises under guidance.
Are there any C and/or C++ exercises on the _internet_?
I only need the questions (no solutions) but the exercises
should be of increasing difficulty and all of the key
topics should be covered (basic types, functions, pointers,
operators, use of standard library...).
For example, I am searching for exercises like:
1) "Read two numbers from stdin and write the bigger of the two to stdout"
2) "Open a text file and count all the words in it"
3) "Open a text file and count the number of occurrences of each character"
4) "Print the function values of sin(x) to stdout, given a
starting and an ending value and a step size."