Sunday, April 12, 2015

edX: - HarvardX: CS50x3 Introduction to Computer Science - week 1

A  history of Paul Allen and Bill Gates and their path to programming the Altair 8800 is read out by two students.  String variable is introduced in this lecture.







Some short notes here on the lecture:-

source code
compiler
object code  0 and 1

while (true) - can run forever
for loop - iterate from 0 to 10
variable - store something
counter - counts forever
boolean expressions  eg    if x>y
condition - compares

compiler - eg gcc
standard environment linux  - a hypervisor
cs50 appliance - gedit

make - triggers the compiler - saves 0 1and1 in a file called hello
./hello runs 
\n is actually new line
string s   %s
printf is part of stdio.h
cs50.h library has functions
GetString Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

No comments:

Post a Comment