C++ Programming
C++ Programming
Lecture 1
http://www1.cs.columbia.edu/~mmerler/comsw1003-1.html
Course Information- TA
TDB
Email: [email protected] Office : TA room Office Hours: TDB
Grades
Check out the board before you send an email to the instructor or the TA, the answer you are looking for could already be there!
Textbooks
The C Programming Language (2nd Edition) by Brian Kernighan and Dennis Ritchie
http://www1.cs.columbia.edu/~mmerler/coms1003-1/C Programming Language.rar
HW3
HW4
HW5
MIDTERM
FINAL
Do not copy from others Do not let others copy from you
Do your homework individually Please read through the departments policies on academic honesty http://www.cs.columbia.edu/education/honesty/
Why programming?
We need a way to tell computers what to do
It would be nice to communicate with computers in English, but
English can be ambiguous! Computers only understand binary!
What is a Program?
A Program is a sequence of instructions and computations Well be designing programs in this course.
These programs will be based on algorithms
Example
Add 3 large numbers
453 + 782 + 17,892
Algorithms help us divide and organize complex problems into sub-problems which are easier to solve (bottom-up approach)
Programming
Back in the day, programmers wrote in Assembly, a language where each
But then they had to hand translate each instruction into binary!!!
PASCAL, C, C++, JAVA, Perl, Python, etc.), which get translated into Assembly
by compilers (we will use GCC, a C compiler for Unix) High level language Assembly Compiler Assembler Machine Instructions
What is C?
Programming language developed by Dennis Ritchie in 1972 at AT&T Bell labs
What is C?
Among the high level programming languages, C is one with the lowest level of abstraction Close to English, but more precise! Easy to compile into Assembly => Fast Rich set of standard function = we dont have to implement everything from scratch!
Translated before run time Translated at run time
C/C++ Industry
Open Source Graphics and Gaming
Embedded
Example of C program
Hello world!
Announcements
Homework 0 is out! Due at the beginning of next class