Day one.
Class Website http://www/haas/fall2013/cprog
lab46.corning-cc.edu/haas/fall2013/cprog
Class introduction to lab46 Regained some familiarity with the lab46 server, trying to remember useful Unix commands.
C - LAB 1
Joe attempted to re-familiarize the class with Bitbucket.org repository. CSCS1320F13 If not already Joe should have a rule of 3's
Functions -
Variables -
Hierarchy of programming language
Preprocessing commands
#include <stdio.h> (has standard i/o functions like printf)
Hello World Program
Joe walked us through writing our first C program to gain some insight on how we use commands to get output from a program. So, opening vi editor and typing in the following commands gets us some output in the form of “Hello World”
Some of the basics of VIM I can remember:
Once our program was hastily written we needed to compile the program using GCC (GNU Compiler Collection). The command used was as follows. $gcc -Wall -o filename hello.c
GCC Manual - gcc.gnu.org Section 3 -
Not lost yet…
Class Repo - src/cprog
Data Types C uses keywords for data types, there are 3 types of data
Integer Types (scalar)
Floating Point
Pointers(memory variables) (composite)