Download presentation
Presentation is loading. Please wait.
1
Welcome to Intro to C/C++ CISC 192
Prof. Ed Brunjes Welcome to Intro to C/C++ CISC 192
2
The Class Has two components Two main web sites
Lecture ( Tuesday/Thursday -12:45 – 2:10pm) Lab – TBA --- Discussion Two main web sites Office Hours – To Be Determined (depending on room schedule)
3
The Syllabus All class information is linked to the syllabus
With the exception of blackboard The four major sections of the syllabus are “quick linked” at the top of the syllabus. Course evaluation is based on – Test (midterm) and quizzes Programming projects
4
The Syllabus (cont’d) Books and references
Final grade based on total accumulated points and the highest accumulation in the class Books and references Primary references – readings linked to the syllabus Additional References – to be determined by the student. A suggested reference: Bronson, G. Object-Oriented Program Development Using C++. (ISBN: )
5
The Syllabus (cont’d) Attendance and Late Assignments
Attendance is not used directly in grading. Quizzes are unannounced and there is no make-up Late assignments will be penalized 25% for 1 week More than 1 week late, assignments are not accepted Dishonesty Policy Duplicate papers may receive an evaluation of 0. Consultation is encouraged copying is not
6
Syllabus (cont’d) Tentative Schedule
The Tentative Schedule may be modified as the semester proceeds. All adjustments and corrections will be announced in class and posted on the opening class page on Blackboard. Reading and Programming Assignments are linked to the Tentative Schedule No additional work will be scheduled for the dates of spring break.
7
Any Questions????
8
Starting Visual C++ in the Lab
Start computer (the big button on the box) If the computer has already been booted, turn it off with the button and re-boot it. At the login prompt press enter
9
Code::Blocks Free download for most platforms Reference the Syllabus
Resources, References, and Supplies Download and Installation presentation Minor differences between Visual C++ and Code::Blocks MS Visual C++ requires “stdafx.h” to be included as the first include statement – Code::Blocks does not.
10
Booting the IDE – in the lab.
Find – MS Visual Studio Find “New Project” Select “Create New Project” Select the programming environment “Windows Console Application” Optionally – select a folder destination (I typically use the Desktop) Click on “OK” The “Application Wizard” will appear. Click on “Finish”. The “Edit” screen will appear.
11
First Program – “Press <ENTER> to Continue”
//The following is a first program //Using your editor type it in and // see what happens #include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Press <ENTER> to continue" << endl; cin.get(); // Accepts a single character return 0; } //End of main()
12
Compile and Execute Use the “Debug” option in the menu bar
Then “Start Debugging” – Debugging, Compilation, and Execution progress should appear in the Status window below the Edit screen Assuming no mistakes have been made the output screen should appear as a separate window and you should see something like the next screen. :o) Otherwise error messages will appear in the Status window :o(
13
Cool, Right??
14
Line-by-line Discussion
Note the following – Include files Using statement Open and close parentheses Use of semi colons cout and cin with data flow operators Etc. Try adding / changing some code
15
Now to Create Errors!! Remove a character or insert an extra character
Use single characters at specific locations to see what happens Once modified – note any error message that might appear in the bottom (status) window. Correct and make a different modification and re-compile.
16
Project 1 – Information and discussion
Review and comment Send via gmail address Project 1 - due by Monday (02/05) Project 2 will be assigned next week.
17
Have a Great rest-of-the-day
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.