1 / 29

Lab 0 - MSDEV Tutorial

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

abena
Télécharger la présentation

Lab 0 - MSDEV Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 0 - MSDEV Tutorial EECE 351 Spring 2000 Lecture # 1 EECE 351 – Lecture 1

  2. First Lab of Class • Introduction • Computer Basics • DOS (ewww) shells • DevStudio • Minimal Programs EECE 351 – Lecture 1

  3. Introduction • Overview • Lab Sessions • Problems with machines EECE 351 – Lecture 1

  4. 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

  5. Lab Sessions • Held periodically • Help cover new topics • Identify common errors • Allow time for teacher interaction • Assist (& improve) Learning EECE 351 – Lecture 1

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. DOS Shells • Console apps • DOS Commands • cd • dir • redirection EECE 351 – Lecture 1

  14. 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

  15. 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

  16. 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

  17. Redirection • Example • ProgramName >> (or >) FileName • “>>” appends screen output to specified file • “>” overwrites file EECE 351 – Lecture 1

  18. 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

  19. Starting the application • Located under Programs • Shortcut EECE 351 – Lecture 1

  20. 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

  21. Toolbars & Menu Items • Build Bar • Personal Assistant • File, Edit, Build, Project, and Tools Menus EECE 351 – Lecture 1

  22. 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

  23. 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

  24. 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

  25. Minimal Programs • Name of Program • Version Number • Creator • Thank you • COMMENTS This list will grow as the semester progresses. EECE 351 – Lecture 1

  26. 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

  27. 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

  28. 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

  29. 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

More Related