290 likes | 391 Views
Lab 0 - MSDEV Tutorial. EECE 351 Spring 2000 Lecture # 1. First Lab of Class. Introduction Computer Basics DOS ( ewww ) shells DevStudio Minimal Programs. Introduction. Overview Lab Sessions Problems with machines. Overview. Why do we need a lab? Hands-On learning
E N D
Lab 0 - MSDEV Tutorial EECE 351 Spring 2000 Lecture # 1 EECE 351 – Lecture 1
First Lab of Class • Introduction • Computer Basics • DOS (ewww) shells • DevStudio • Minimal Programs EECE 351 – Lecture 1
Introduction • Overview • Lab Sessions • Problems with machines EECE 351 – Lecture 1
Overview • Why do we need a lab? • Hands-On learning • What do we have to do in this lab? • Cover Computer Basics • Introduce MSDEV • Create our first application • Prepare for future labs EECE 351 – Lecture 1
Lab Sessions • Held periodically • Help cover new topics • Identify common errors • Allow time for teacher interaction • Assist (& improve) Learning EECE 351 – Lecture 1
Problems with Machines • F-1 Key • Downstairs – Help Desk (1D19?) • NCR room – ECE support • I can assist with items not requiring administrator status. EECE 351 – Lecture 1
Computer Basics • I assume you know how to use a computer. • If you don’t, you’re in the wrong curriculum • Connecting to network resources • Accessible directories on other computers are called “Shares.” • Printing (SAVE THE TREES) • Zip files • E-Mail EECE 351 – Lecture 1
Connecting to network resources • Right-click on My Computer • “Map Network Drive…” • Drive • Choose one not being used. • Path • \\ComputerName\ShareName • Connect as: • ENGINEERING\username • Enter password when prompted. EECE 351 – Lecture 1
Printing • PRINT AS MUCH ON A PAGE AS YOU CAN! • PowerPoint lets you print up to 9 slides per page. Make sure these are selected EECE 351 – Lecture 1
Printing (cont.) • Some Printers can print double-sided. • This means you can (and should) fit 18 slides to one sheet of paper! See This? USE IT! EECE 351 – Lecture 1
Zip Files • Reduces: • Amount of space needed for files • Amount of bandwidth to transport files • All homework submissions are to be in *.zip format. • Right-click explorer interface. • WinZip (costly but better), EasyZip2000 (free but buggy) EECE 351 – Lecture 1
E-Mail • Those messages you send people • E-Mail homework to nida@engr.sc.edu • ATTACHMENTS • Must place deliverables in zip file • Drag & Drop zip file into e-mail message EECE 351 – Lecture 1
DOS Shells • Console apps • DOS Commands • cd • dir • redirection EECE 351 – Lecture 1
Console apps • Only work satisfactorily in DOS windows • Input parameters given either in command line (argc & argv) or though console interface • Display help with /? switch • Switch? • Options you specify at execution time • Write after program name • Usually have “/” in front (can be “-”) EECE 351 – Lecture 1
cd • cd (or chdir) [drive:][path] • Changes to directory specified • Tells you current directory if none specified • cd . Change to this directory • cd .. Change to parent (above) directory • If path has a space, place quotes around it! EECE 351 – Lecture 1
dir • dir [drive:][path][filename] switches • Lists contents of a directory • Common Switches • /w shows wide version • /p 1 screen at a time • /s search subdirectories EECE 351 – Lecture 1
Redirection • Example • ProgramName >> (or >) FileName • “>>” appends screen output to specified file • “>” overwrites file EECE 351 – Lecture 1
DevStudio (MS Visual 6) • Starting the application • Creating a program • Empty Project • Simple Application • Toolbars & Menu Items • Personal Assistant • Writing your code • Debugger • Getting Help EECE 351 – Lecture 1
Starting the application • Located under Programs • Shortcut EECE 351 – Lecture 1
Creating a program • “File->New…” (Ctrl-N) • Choose “Win32 Console Application” • Empty Project • You get nothing! • Used when given preexisting code • Simple Application • Skeleton program (main) • “Stdafx.h” (Must be included in each file) EECE 351 – Lecture 1
Toolbars & Menu Items • Build Bar • Personal Assistant • File, Edit, Build, Project, and Tools Menus EECE 351 – Lecture 1
Writing your code • Code goes in right-most window. • Errors get printed in lower window. • Left window has project in a “Tree” view. • Comments • // Until End of line • /* Until */ EECE 351 – Lecture 1
Debugger • Breakpoints • F-10 (Step Over) • F-11 (Step Into) • Run to Cursor • Watch Windows • Edit and Continue • This will be covered during the next lab. EECE 351 – Lecture 1
Getting Help • F-1 • MSDN is unbelievably vast. Narrowing your search is the hard part. • Index, Search (add more words to refine), and other options • Tooltips • THE WEB! EECE 351 – Lecture 1
Minimal Programs • Name of Program • Version Number • Creator • Thank you • COMMENTS This list will grow as the semester progresses. EECE 351 – Lecture 1
What we know • How to use the computer to build programs • How to submit our assignments • How to execute our programs • Minimal Programs EECE 351 – Lecture 1
Where we are going • Lecture – Data Types and Operators • Data Types • Numbers • ints, floats, doubles • characters • Operators • Errors • Syntax (Compile-time) • Semantic (Run-time) • Program Life cycle EECE 351 – Lecture 1
Lab • Create a “Hello World” App • Compile & then Build the application • Place semicolon “;” after • int main(int argc, char* argv[]) • Remove semicolon “;” after • printf("Hello World!\n"); • Remove braces • Hit F-1 while cursor inside of printf EECE 351 – Lecture 1
Homework # 0 (Due 01-20-00) • Take the Hello World app created in lab and add the minimal components. • Submit deliverables! • Read all introductory sections and chaps 1 & 2 of MMM. • Chapter 18 contains propositions • Read all introductory sections and chap 1 of Deitel & Deitel. EECE 351 – Lecture 1