Tutorial main page - Algorithm-Based - Component-Based - Programming hints -EO documentation

# Tutorial:

Solutions of exercises

No, w e w o n't p r o v i d e any hypertext link directly to the correct code, so you get a chance to find out the solution by yourself without immediately going there :-)))

What you should do:

- copy the code of an example onto another name (e.g. `mytest.cpp`)
- edit and modify `mytest.cpp` according to the corresponding instructions of the exercise
- compile `mytest.cpp` by typing `make mytest` at system prompt, and you will hopefully get an executable file named `mytest` (for Unix systems: if eventually someone tells me how to do that in Windows, apart that you'll probably end up with an executable file named `mytest.exe...`).

What you may do later:

All solutions to exercises are in the same sub-dir of the Tutorial directory than the example files (i.e. Lesson1 for Lesson1, yes!) and are named `exerciseN.p.cpp` where N is the lesson number and p the exercise number. Hence you may browse through the code, eventually modifying it, and then simply type, in the corresponding directory,
`... % make exerciseN.p`
which will compile file `exerciseN.p.cpp` into executable `exerciseN.p` (for Unix systems: if eventually someone tells me how to do that in Windows, you'll probably end up with an executable file named `exerciseN.p.exe`).

What you may not do:
Complain that it does not work under Windows :-)

Tutorial main page - Algorithm-Based - Component-Based - Programming hints - EO documentation

Last modified: Fri Nov 3 18:49:12 CET 2000