- 12/05/2007
Slides for the lecture 21: lecture21.pdf
program: getline.cpp
isdigit.cpp
string1.cpp
- 12/03/2007
Slides for the lecture 20: lecture20.pdf
program: C_strings.cpp
- 11/26/2007
Slides for the lecture 19: lecture19.pdf
- 11/19/2007
Slides for the lecture 18: lecture18.pdf,
programs: char-to-int.cpp, augment.cpp, selection-sort.cpp
- 11/14/2007
Slides for the lecture 17: lecture17.pdf,
programs: get-put.cpp, greatest-element.cpp, sum.cpp, dynamic-allocation.cpp,
Do in class:
1. Write a program that will do the following:
- ask a file name (for the input stream)
- don't forget to check for existance of the file
- will read-in symbol by symbol from the input stream and immediately output it to the screen
(it should do it till it reaches the end of the file)
an algorithm (for this problem):
...
while(not the end of the file)
{
read-in one symbol;
output it to the screen;
}
Comments:
the check for "not the end of the file" should look like this:
while(!in_stream.eof())
...
- 11/13/2007
The Test №2 will take place on Wednesday, November 28th.
- 11/12/2007
Slides for the lecture 16: lecture16.pdf,
programs: i-o-example-modified-more.cpp, i-o-file-name.cpp
- 11/07/2007
Slides for the lecture 15: lecture15.pdf,
programs: i-o-example.cpp, i-o-example-modified.cpp
- 10/31/2007
Slides for the lecture 14: lecture14.pdf,
program: ordering.cpp
- 10/31/2007
Slides for the lecture 13: lecture13.pdf,
program: call-by-reference-example.cpp
To do in class: Write a main function. Declare a variable of type double in it.
Write another function that asks the user to input two values (say, a, b). Finds their quotient (a/b) and stores the result in the variable declared in the main function.
- 10/29/2007
Please, note the the due dates of HW№7 and HW№8 assignments have been changed.
- 10/22/2007
Slides for the lecture 12: lecture12.pdf,
program: min.cpp
- 10/17/2007
Slides for the eleventh lecture: lecture11.pdf,
program: programmer-defined-function.cpp, global-vars-example.cpp
- 10/10/2007
Slides for the teth lecture: lecture10.pdf,
program: sqrt-example.cpp
- 10/10/2007
Slides for the nineth lecture: lecture9.pdf,
programs: for-loop.cpp, for-loop-testing.cpp
The due date of the Midterm Project is Monday, October 29th.
Midterm Projects must be compilable, well commented and tested.
There will be no possibility to correct them and re-submit.
- 10/03/2007
Slides for the eighth lecture: lecture8.pdf,
programs: switch-example.cpp, switch-example-user-stops.cpp, switch-menu.cpp, for loop.cpp
- 09/24/2007
Slides for the seventh lecture: lecture7.pdf,
- 09/19/2007
Slides for the sixth lecture: lecture6.pdf,
programs: do-while-loop.cpp, while-loops.cpp
- 09/17/2007
Test #1 will take place on Wednesday, Sept. 26th. It is open book, but you can't use your notes.
- 09/17/2007
Slides for the fifth lecture: lecture5.pdf,
program: account-withdraw.cpp
- 09/10/2007
Slides for the fourth lecture: lecture4.pdf
- 09/05/2007
Slides for the third lecture: lecture3.pdf
- 08/29/2007
We've got a tutor for our class:
M/W 2:00pm-4:00pm
T/Th 12:00pm-2:00pm
Wann
I also forgot about the Labor Day (Monday, September 3rd), thus we don't have class this coming Monday. So I extended the due date for the homework till Monday, September 10.
- 08/29/2007
Slides for the second lecture: lecture2.pdf
Other slides will be posted after next class.
The C++ program we did in class: sum-of-two-numbers.cpp
If you'd like to install a C++ compiler on your home machine, here is the link to the Microsoft Visual C++ 2005 Express Edition (free):
http://msdn.microsoft.com/vstudio/express/visualc/
- 08/27/2007
Welcome to the course!