C/C++ Programming 2
Ray Mitchell
Assignment Schedule And Information

ALL ASSIGNMENTS ARE ONE PERSON PROJECTS

1.

Getting occasional suggestions or explanations from others is encouraged.

2.

Working together with anyone on any part of any assignment is PROHIBITED and will result in a score of 0 for the entire assignment.

3.

Submitting work that is not exclusively your own or that you have shared with others is PROHIBITED and will result in a score of 0 for the entire assignment.

 

BEFORE DOING ANY ASSIGNMENTS...
please examine ALL of the following:

Assignment Preparation And Submission Requirements
May I Submit Assignments Late/Incomplete?
May I Submit Assignments via E-mail?
How Do I Create A Program Using:
        Microsoft Visual Studio .NET 2010 IDE
        Microsoft Visual Studio .NET 2008 IDE
        Microsoft Visual Studio .NET 2005 IDE

        Other IDEs
How Do I Create A Program From Multiple Files?
How Do I Set Up IDE Command Line Arguments?
Debugging Programs and Getting Instructor Help
Differences Between C And C++ Programs
Microsoft Warning C4996

 

Topic Coverage and Assignment Schedule
Grading policies and regaining points lost on assignments 2-4...

ASSIGNMENT PREPARATION AND SUBMISSION REQUIREMENTS

CLICK HERE TO DOWNLOAD ASSIGNMENTS 1-8

This
Meeting

"Advanced C/C++ Notes"
Topics For This Meeting


Assignment Due At This Meeting
 

1

Section 0 - "Computer Number Systems"
Notes:  11.1 - 11.9
Notes:  18.1 - 18.9
none

2

Notes:  12.1 - 12.8 

Assignment 1:  10 short code; 35 multiple choice

This assignment must be completed and turned in to obtain full credit for this course, although the actual score you obtain on it will not be used when computing your final grade.

Unlike assignments 2-8 you do not need to run any of the code and nothing should be submitted to the "Automated Assignment Checker".  Please contact me with any questions you may have.
3 Notes:  13.1 - 13.13 Assignment 2:  3 programs; 1 drawing
4 Notes:  13.14 - 13.27 Assignment 3:  3 programs; 1 short answer
5 Notes:  14.1 - 15.3 Assignment 4:  3 programs
6 Notes:  15.4 - 15.14 Assignment 5:  3 programs; 1 drawing
7 Notes:  15.15 - 16.7 Assignment 6:  4 programs
8 Notes:  16.8 - 17.3 Assignment 7:  4 programs

9

Notes:  17.4 - 17.15

Assignment 8:  2 programs

 

What is a "C Program"?          What is a "C++ Program"?

Most exercises say to, "write a C program" or, "write a C++ program".  Virtually all ANSI/ISO/IEC C functions and constructs will compile and execute properly in a C++ environment, but because C++ was designed to be "a better C", alternatives to many of those deemed "unsafe" have been implemented in C++.  Only the C++ alternatives should be used in a C++ program.  On the other hand, no C++ forms may be used in a C program.  For the C++ concepts covered in this course use the following guidelines when writing your programs:

Some characteristics of  a "C Program"

Some characteristics of  a "C++ Program"

Source code files typically have  .c  extensions while header files typically have  .h  extensions.

Source code files never have  .c  extensions but instead typically have extensions of  .cpp, .cxx, .C, etc.  Header files typically have no extension.

void pointers and functions that use them or have a variable number of arguments are fine.

void pointers or functions that use them or have a variable number of arguments are not normally used.

Use the stdio family of functions for stream I/O, for example scanf, printf, getchar, putchar, fgets, fputs, fread, fwrite, etc. .

Use the iostream and ...fstream family of objects/methods/operators for stream I/O, for example cin, cout, cerr, get, getline, put, write, etc.

Use  malloc, calloc, realloc, and free for dynamic memory operations.

Use new, new[], delete, and delete[] for dynamic memory operations.

Use /*...*/ for comments.

Use // for comments.

Use the keyword void to designate an empty parameter list:
int main(void)
Omit the keyword void to designate an empty parameter list:
int main()