. . . . . . . . . ( end of section Admin) <<Contents | End>>
They do precisely what we tell them to, step by step, exactly as they have been told.
So we have to tell them what to do..... in detail.
Computers are dumb -- we have to be smart to make them useful.
To be able to tell them what to do correctly you have to understand how they work.
Once you have got the ideas and syntax of C++ you will find nearly any other language easier to learn -- the exceptions are in CSCI320.
Almost as common as putting a ";" in the wrong place.
Q name.cppor this
~dick/bin/Q name.cpp
We can use the CodPad site [ http://codepad.org/ ] to check the program for errors.
In this class there will be programming projects. You should first write an algorithm. Put it in your program file before you add the C++ code:
/* Algorithm
1. .....
2. .....
...
end Algorithm */For example see [ project.cpp ] which is a good place to start the projects in this class.
Note: In many applications we don't need a complex algorithm but we do need to understand what the user wants and how they can get it. For example
Here is the example algorithm [ 02example.html ] , follow it, starting with number set to any positive whole number you like. You may use a calulator. You should use paper and pencil. Work out step by step what it does with your starting value.
. . . . . . . . . ( end of section Exercises) <<Contents | End>>