Tags: %TAGME{ tpaction="" web="SCMP118/Fall2016" tag="" }% view all tags

Notes for Day 2


  • Program/Software/Hardware
  • Input Device/Output Device
  • Memory
  • High-Level/Low-Level Language
  • Compiler
  • Source Code/Object Code
  • Linking/Linker
  • Algorithm
  • Statements
  • Syntax Errors
  • Run-Time Errors
  • Logic Errors


  • Remember that problem solving is at least as important as implementation.
  • Think through what steps are needed to solve the problem before starting to write code.
  • There is a big difference between \n and /n. The former is a way of saying “start a new line here,” while the latter is just a slash and an n.
  • Be careful which way the arrows go for input and output. Inputs use “>>” whereas outputs use “<<”.
  • White space (spaces, tabs, and returns) don’t usually matter in C++, but they do matter inside quotation marks and inside the <…> of an include directive.

How to create a new C++ console project in CodeBlocks

  1. Login to your Kenyon account in the lab
  2. Open the "Installed Software" folder
  3. Double Click "CodeBlock"
  4. Go to File->New->Project
  5. Select "Console Application"
  6. Click "go"
  7. Click "Next"
  8. Make sure C++ is selected and click "Next"
  9. Give the project title (like "helloworld")
  10. Select your driver or USB drive as the folder to create in
  11. Click "Next"
  12. Click "Finish"
  13. Open the sources folder of your project
  14. Open "main.cpp"
  15. Replace the code with your code
  16. Select Build->Build
  17. Check for errors in log panel (bottom)
  18. Select Build->Run
  19. A window should open up and the program will run in it.
  20. Close the window, not doing so with lock your CodeBlock for further changes.
More information on the CodeBlocks wiki: http://wiki.codeblocks.org/index.php?title=Creating_a_new_project
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2015-08-30 - JimSkon
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback