程式設計


Outline (Feb. 22, 2012)


 注意事項:

1. Weighting for the homework grading.

 


1.  Chapter 1: Introductio to computers      More details can be found (Feb. 22)

                      Introduction to Programming   

2. Chapter 2: Introduction to C++ Programming   (Feb. 29 and Mar. 07)

            MS Visual C++ 2010 Express (Slides from TA)      

            ex2.1-4  details                ex2.5    details            Sec. 2.6 and 2.7

3. Chapter 3: Control Statements: Part 1 (Mar. 14 and 21)

        補充: 數位資料表示法     format testing, memory size of several data types, and p++ vs. ++p;

4. Chapter 4: Control Statements: Part 2 (Mar. 28, and Apr. 11)

5. Chapter 5: Functions and an Introduction to Recursion (Apr. 11, Apr. 18)

Midterm (Apr. 25)  Q_Sol

6.  Chapter 5: Functions and an Introduction to Recursion (May 2 and 9)

7. Chapter 6: Arrays and Vectors (May 9 and 16)

8. Chapter 7: Pointers (May 23, 30, and Jun. 6)

9. Chapter 8: Sequential-Access Files (Jun. 6 and 13)

Final (Jun. 20)


Homework (Please e-mail to TA

1. Homework #1 (Feb. 22) Please set up an IDE (MS Visual C++ 2010 Express or other) and write your first program (Due: ASAP)

2. Homework #2 (Feb. 29) Please edit examples in Fig.02.01-05. Build them and execute them (Due: ASAP). You can use ex2.1-4.cpp and ex2.5.cpp  in this website.

                            You can modify them and repeat the process. 

3. Homework #3 (Mar. 07)  Exercises 2.16, 2.20, 2.29  (Due: Mar. 21)

4. Homework #4 (Mar. 14) Build and execute the following programs.   HW4_1a.cpp and HW4_1b.cpp          HW4_2a.cpp and HW4_2b.cpp

                            Please find the difference between them, and explain why such "minor" difference results in so major difference.

                            Hint: Add the following statement to check the value of score

                             cout << "Score = " << score << endl;                                                                                               

                            (Due: Mar. 21)

5. Homework #5 (Mar. 21) Exercise 3.34 (Due: Mar. 28)

6. Homework #6 (Mar. 28) Exercises 4.8 and 4.15 (Due: Apr. 10) 

7. Homework #7 (Apr. 11) Exercise 4. 20 and 4.22  (Due: Apr. 17)

8. Homework#8 (Apr. 18) Exercise 5.25 and 5.34 (Due: Apr. 24)

9. Homework #9 (May 9) a. Exercise 5.37, 5.38 and  5.41  (Due: May 15)

                                        b. Use array for users to input ten integers. Then find the minimum of them and print it. (Due May 15)

                                        c. Optional bonus: 5.39 (Due: May 30)

10. Homework #10 (May 29). Exercise 6.11, 6.18, and 6.31 (Due: June 5)

11. Homework #11 (Jun. 7) Exerciese 7.11 and 7.14 (Due: Jun. 15)

12. Homework #12 (Jun. 7) Exercise 8.12 (Due: Jun. 19)


TA: 鄧嘉文

Office: 教研館106

Phone:  

e-mail:  r98741015@ntu.edu.tw