Programming in Second Language (C++)

CSE 2050, Spring 2017

Instructor: Debasis Mitra, Ph.D.

Office: Harris325 E-mail: dmitra ‘at’ cs.fit. edu

Class Home Page:

Class Room: CRF 230 Class Time: TR9:30-10:15 am Office Hours: MW 12:30-2:30 pm(or by appointment)

Required textbook: Stroustrup: "Programming: Principles and Practice using C++ (Second Edition)" Addison-Wesley 2014, ISBN 978-0-321-99278-9.

Tentative Grading plan: Quizzes: 25%, Mid Term 1: 15%, Programming Assignments: 40%, Final: 20%

Detail plan forSpring 2017:

≤ 29 class days

Date / Activities planned/ performed
Jan 10, T / Intro: Class web page, Canvas page, Text (must have!), Online resources;
Syllabus-Assignments-OnCampus Resources
/ Reading Assignment from cplusplus.com:
Basics -> Variables and types
Basics -> Constants
Jan 12, R
(Jan 16, M – MLK day) / Marcello on Laptop vs Server as your computing platform, Operating System issues, needed Unix commands, IDE, Compilation, HW submission,
And Anything-Else?
Take a 10-15 lines (within one page without scrolling) code with bugs, compile and fix one syntax bug, look up Google to find help on bug-message, run and fix one logic bug in front of them. HW1 may be similar to this sample
Jan 17, T / Types, Const, Operators from Cplusplus.com:
Ch3_types from Stroustrup: / All non-CS/SE students stay after class a few minutes.
Jan 19, R
(Drop w/o W grade, Jan 20) / 3_types.ppt: string and string I/O, int and int I/O, types and objects, type safety
My notes on input-output
Jan 24, T / Marcello on Homework-1
Program structure (C++.com)
Quiz-1
Jan 26, R / Functions from C++.com
Jan 31, T / Overloading, namespaces
Quiz-2
Feb 2, R / 8_functions.ppt: declarations, functions, namespaces
Feb 7, T / Arrays, String, Vectors, start of pointers
Feb 9, R / => Start with demo on mult-dim array param passing with one or more constants on dimension
Pointers,
Quiz-3
Feb 14, T / Pointers
Feb 16, R
(Feb 20, M, President’s day) / Pointers contd.
Dynamic memory;
5_errors.ppt: kinds of errors, argument checking, debugging, testing / HW-2 announced
Feb 21, T / Struct, Typedef, Union, Enum
Simple file I/O
Quiz-4
Feb 23, R / Classes, Constructors, pointers to classes
Feb 28, T / C++ operator overloading, this, static, const, templates, default constructor, destructor, copy, move, implicit
Mar 2, R / Class – continued
Quiz-5
Mar 6-10
Spring Break / - - -
Mar 14, T / Class - continued
Friend classes, inheritance, multiple inheritance, polymorphism, abstract base class, / Hw 3
Mar 16, R
(Drop with ‘W’ grade, Mar 17) / Class inheritance from Cplusplus.com:

Mar 21, T / Midterm
Mar 23, R / Polymorphism: from cplusplus.com
9_classes.ppt: from Text / 17_free_store.ppt: vector revisited, pointers and free store
18_arrays.ppt: destructors, initialization, copy and move, arrays
11_custom_io.ppt: i/o numeric output, file modes, string streams, line-oriented input
Mar 28, T / Revision on “class” / Hw 4
Mar30, R / Input/Output with files
10_iostreams.ppt: I/O concepts, Files, I/O errors
Apr 4, T / Type conversion
Apr 6, R / Exceptions
Marcello on memory leaks.
Quiz-6 / 20_containers.ppt: the STL, containers, algorithms, iterators
Apr 11, T / Java and C++ / Hw 5
Apr 13, R / Preprocessor directives
Apr 18, T / Ch 27: C and C++ / Excluded from Final
Apr 20, R / Quiz-7 / Hw6
Apr 25, T
(Last class) /
and up to slides 18 (template) from:
19_vector.ppt: arrays and pointers problems, changing size, templates / Thanks for feedbacks!
May 5, F
1-3pm / Exam
Schedule:
9:30–10:45 a.m. / Friday, May 5 / 1–3 p.m.
/ Final questions are mostly from the Quizzes
and a few are related to the Homeworks.
Excluded: CvsC++