The first week of classes are over . This semester is going to require a lot more attention during classes and studying on top of working. Programming is not a simple thing to learn. Matt expressed it perfectly when he compared programming language to foreign languages! Sure you may be able to learn some quick pointers but to be able to put it all together with being sloppy takes time and knowledge. I'm hoping that taking C/C++
along with Object and Structure
class at the same time won't be a problem. I see a lot of similarities already mainly when at the lab section on C/C++. Joe was using a lot of the vocabulary and motions Matt took the previous days. Setting up the repositories along with cloning randomly type coded was interesting to learn but I would be lying if I wasn't confused. Just one misplaced character can completely defeat what you are trying to accomplish. I'm hoping the next couple weeks are not so much easier but clearer to me so I can not feel so lost and begin to gain some confidence that I can do programming and do it well!
Guide to setting up chat:
The second week of class is over and went smoother then the last. I'm still having a hard time once in awhile remembering how to open files and compile the files. However I know in time these actions will become second nature. Matt went over the code we wrote Tuesday. He explained more of the functions as well as altering the program to show us what certain functions do.
File actions
Notes
status cprog will show attendance, opus, and projects
Scanf()
F0r()
Place holders
Array
Mental Math
Coding shortcuts
Basecounterflex led up to data types and ranges, see helper.c program. Shows the value of the different variables.
signed and unsigned variables are 8 bits
bits unsigned signed 000 0 +0 001 1 +1 010 2 +2 011 3 +3 100 4 -4 101 5 -3 110 6 -2 111 7 -1
signed
unsigned
Programs
Logic
Day of week program assigned due October 1
Makefile
CMD arguements
Program
Pipe Math assignment
Numbers- 4, Maths- divideby, Bases- tobase7
If statement vs Else if statement
Readability vs write-ability
switch (variable)
{ case0: thing; break; \\need break otherwise it keeps going case to case until a break case 1: thing; break; }
Program
Pipe Math Assignment
Gather notes from 10/9 (Thursday class)
Scope
Function
Program
Knowledge test on October 30
What we can do with files?
Things to remember
File pointers
Programs
Skill assessment Thursday!
Access Control
Function overloading
Instantiation
Destructor
compile C++ programs
accessor methods
Program
Inheritance
Programs
Node.h
start → 7 → NULL [start = new SingliyLinkedNode (7)]
tmp/tmp2 → NULL
start → 7 → 39 → NULL [start → setnext (SinglyLinkedNode (39)]
start → 7 → 39 → NULL [tmp=start→ getNext()]
^ '-tmp
tmp2→ 73 → NULL [tmp2 = newSingliyLinkedNode (73)] (separate nodes atm)
tmp2 '
start→ 7 → 39 → NULL
^ '-tmp
tmp2 '
start → 7 → 73 → 39 → NULL [start→ setNext(tmp2);]
^ '-tmp
Compiling: g++ -o nodefun nodefun.cc -Iinc -LSinglyLinkedNode -lSinglyLinkedNode -Lnode -lnode
Reminder
Program