This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:nvitull1:start [2017/09/18 19:06] – nvitull1 | user:nvitull1:start [2017/10/23 19:53] (current) – nvitull1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Nick's Wiki Notes ==== | ==== Nick's Wiki Notes ==== | ||
- | **09/18/2017** | + | **10/23/2017** |
- | | + | - |
+ | - structured, imperative, procedural (C) | ||
+ | - object-oriented (C++) | ||
+ | - functional (Prolog) | ||
+ | - logical (Haskell) | ||
+ | - g++ to compile C++ code in unix | ||
+ | - Access Control - class | ||
+ | - public - accessible to all | ||
+ | - protected - accessible to derived classes | ||
+ | - private | ||
- | **09/ | + | **10/ |
+ | - fscanf(stdin, | ||
+ | - int fname(int *); // prototype | ||
+ | - int x, y; | ||
+ | - y=fname(& | ||
+ | - void main() // does not return anything | ||
+ | |||
+ | |||
+ | **10/ | ||
+ | - functions or procedures | ||
+ | |||
+ | To use a function: | ||
+ | 1. declare/ | ||
+ | 2. define | ||
+ | 3. call | ||
+ | |||
+ | To use a variable: | ||
+ | 1. declare | ||
+ | 2. initalize | ||
+ | 3. access | ||
+ | |||
+ | **10/ | ||
+ | | ||
+ | | ||
+ | |||
+ | **09/ | ||
+ | | ||
+ | | ||
+ | |||
+ | **09/ | ||
+ | | ||
+ | |||
+ | |||
+ | **09/ | ||
+ | | ||
+ | |||
+ | |||
+ | **09/ | ||
| | ||
| |