Difference: NotesDay2 (1 vs. 5)

Revision 52016-08-29 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Notes for Day 2

Terms

Line: 18 to 19
 
  • 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.
Changed:
<
<
  • 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.
>
>
  • 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.
 
Changed:
<
<

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

>
>

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

 
  1. Login to your Kenyon account in the lab
  2. Open the "Installed Software" folder
Changed:
<
<
  1. Double Click "CodeBlock"
  2. Go to File->New->Project
>
>
  1. Double Click "NetBeans 8.1"
  2. Go to "File->New Project"
 
  1. Select "Console Application"
  2. Click "go"
  3. Click "Next"

Revision 42015-08-30 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Notes for Day 2

Terms

Line: 45 to 45
 
  1. A window should open up and the program will run in it.
  2. 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
Added:
>
>
META TOPICMOVED by="JimSkon" date="1440943181" from="KenyonCpp.NotesDay1" to="KenyonCpp.NotesDay2"

Revision 32015-08-30 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<

Notes for Day 1

>
>

Notes for Day 2

Terms

  • 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

Tips

  • 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

Revision 22015-08-26 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Notes for Day 1

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

Line: 23 to 23
 
  1. Select Build->Run
  2. A window should open up and the program will run in it.
  3. Close the window, not doing so with lock your CodeBlock for further changes.
\ No newline at end of file
Added:
>
>
More information on the CodeBlocks wiki: http://wiki.codeblocks.org/index.php?title=Creating_a_new_project
 \ No newline at end of file

Revision 12015-08-25 - JimSkon

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Notes for Day 1

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.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback