130 likes | 210 Views
Midterm Review. EECE 351 Spring 2000 Lecture # 9. Compiling. Only affects ACTIVE file Checks syntax of file. If successful, .cpp (source code) Converted into .obj (intermediate file) Otherwise: Syntax ERRORS! Double-click takes you to line with error F-1 Help. Building.
E N D
Midterm Review EECE 351 Spring 2000 Lecture # 9 EECE 351 – Lecture 9
Compiling • Only affects ACTIVE file • Checks syntax of file. If successful, • .cpp (source code) • Converted into • .obj (intermediate file) • Otherwise: • Syntax ERRORS! • Double-click takes you to line with error • F-1 Help EECE 351 – Lecture 9
Building • Affects ALL files in Project • If *.obj is not up-to-date, compile *.cpp • ALL “.obj”s • Converted to • ONE .exe • Linking Errors • F1 Help EECE 351 – Lecture 9
Microsoft Visual Studio 6.0 • You should know about certain toolbars by the time you get out of this class. • I recommend knowing 1 by the midterm. Here are your two options: • Build • Debug EECE 351 – Lecture 9
Control Structures • true && false • if, elseif, else • switch/case • for • while && do/while • Syntax errors && Semantic errors EECE 351 – Lecture 9
Functions • Functions consist of three parts • Prototype – Tells compiler about what function returns and needs to operate. • Definition – Tells compiler what the function does. • Call – Used to start the function. • Call by reference && call by value EECE 351 – Lecture 9
Arrays & Pointers • Know • How to declare • [] * • How to use • [] * & • Errors that might occur • NULL, out-of-bounds, etc. • Dynamic Allocation will be on there EECE 351 – Lecture 9
I/O • Out of the two, go with the Input • C++ streams make it easy • I would strongly encourage you to study the C++ input streams. File & console EECE 351 – Lecture 9
Format • T || F – 5 Questions (10pts) (60% SE) • Short Answer – 5 Questions (15pts) • Fill In the blank • Short Response – No more than 5 words. • (60% SE) • Errors – 2 Questions (20pts) • 5 Syntax & 5 Semantic • 1pt/ Line, 1pt/ Correction • Discussion – 2 Questions (10pts) • 1 MMM • 1 MS Visual 6.0 EECE 351 – Lecture 9
Format • Reading – 3 Questions (15pts) • Output • What it is supposed to do • Writing – 3 Questions (30pts) • 2 segments • 1 full program EECE 351 – Lecture 9
5 Qs • Where? • 3C01 – Right across from my office • Top floor • Between the B & D Wings. (Right in the middle/back of Swearingen) • When? • 9:30 – 10:45am Feb 15. • Why? • See how well of a job I have done • chance to re-evaluate your action plan EECE 351 – Lecture 9
5 Qs • How to succeed? • Get a good nights sleep • Eat a good breakfast • Study • Labs • MMM – Chap 18 • D&D – CS through SRE (Already answered) • Start with the easiest. • Check over when finished • Don’t double guess yourself – 90% you’re right EECE 351 – Lecture 9
The remaining question(s) . • Up to You! ASK NOW!!!!!!! EECE 351 – Lecture 9