C/C++ Programming Journal

August 29, 2014 (week one)

The first week of classes are over :-o. 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:

September 4, 2014 (week two)

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

September 11, 2014 (week three)

status cprog will show attendance, opus, and projects

Scanf()

F0r()

Place holders

Array

September 18, 2014 (week four)

Mental Math

Coding shortcuts

September 25, 2014 (week five)

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

October 2, 2014 (week six)

Makefile

  1. collection of actions instructing Make how to perform the action.
  2. make help to bring up actions
  3. use “make” to make things

CMD arguements

Program

Pipe Math assignment

Numbers- 4, Maths- divideby, Bases- tobase7

If statement vs Else if statement

Readability vs write-ability

October 9, 2014 (week seven)

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)

October 24, 2014 (week eight)

Scope

Function

Program

Knowledge test on October 30

October 30, 2014 (week nine)

What we can do with files?

Things to remember

File pointers

Programs

Skill assessment Thursday!

November 6, 2014 (week ten)

Access Control

Function overloading

Instantiation

Destructor

compile C++ programs

accessor methods

Program

Inheritance

November 13, 2014 (week eleven)

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

November 20, 2014 (week twelve)

Program