|
|
|
|
Title: Lecture 3 | Programming Paradigms (Stanford)
Added: Jul 18, 2008
Author: StanfordUniversity
Duration: 52:49
Description:
Lecture by Professor Jerry Cain for Programming Paradigms (CS107) in the Stanford University Computer Science department. In this lecture, Prof. Cain discusses C programming, focusing upon string duplicates, string copy, and memory diagrams.Programming Paradigms (CS107) introduces several programming languages, including C, Assembly, C++, Concurrent Programming, Scheme, and Python. The class aims to teach students how to write code for each of these individual languages and to understand the programming paradigms behind these languages.Complete Playlist for the Course:http://www.youtube.com/view_play_list?p=9D558D49CA734A02CS 107 Course Website:http://www.CS107.stanford.edu/Stanford University:http://www.stanford.edu/Stanford University Channel on YouTube:http://www.youtube.com/stanford/
Related Videos:
Videos related to 'Lecture 3 | Programming Paradigms (Stanford)'
Channel: Education
Tags: science math engineering computer language source code technology programming paradigm c++ bit byte pi array struct address string duplicate copy activation record memory diagram
science math engineering computer language source code technology programming paradigm c++ bit byte pi array struct address string duplicate copy activation record memory diagram
Youtube Comments: 121
AesmaDiv Says:
Jul 11, 2011 - Чёто я недопонял. На 29:30 от arr[1] нужно 8 раз сместиться на размер char, т.е 8 байт. Размер сигмента int т.е. 4 байта, а он смещается на 4 сегмента, т.е. 16 байт. Ошибся? Или я чё-то не вкурил...I have i little misunderstanding...On 29:30 we need to jump from arr[1] position 8 times on size of char (8*1=8bytes). Segment size is int (4bytes), but he jumps on 4 segments (4*4=16bytes). Mistake? Or its just me...
Alexhoanghtd Says:
Jul 14, 2011 - I've learn all of this in my college, but he make it perfectly clear here :D I'm glad I find this course :D
Libervurto Says:
Aug 18, 2011 - I think you just missed the arr[3].We move 8 chars forward first, then we change to using short (4bytes) as the segment size and move to the fourth segment because he is writing the value 100 to arr[3], the fourth entity in the arr array.
cbspace Says:
Sep 7, 2011 - I've been trying to learn programming/scripting languages for a while. And because of my over-analytical mindset, I just couldn't 'get' half of it, so a good friend told me to look into programming principles. And finally, although I'm going to do CompSci at University, I am finally getting it. Thank you Stanford and Prof Cain.
Ghouly89 Says:
Sep 10, 2011 - I was thinking the same thing.... He was traversing the array of integers as if each box were containing 2 bytes instead of 4 bytes (probably confusing them as shorts). After the (char *) type cast, he would end up with a pointer to the 4th "box", or arr[3].
jjjdeste Says:
Sep 23, 2011 - what a great teacher! Way better than my comp science teachers in Eindhoven almost 20 years ago.
KenmoreTownKillaz Says:
Sep 23, 2011 - Will this teach me to program C or C++ ?? Someone Please Answer
jamebozo Says:
Sep 30, 2011 - right now, C. later perhaps C++.
vonlubcke Says:
Oct 3, 2011 - it will give you a lot, but to learn to program it isn't only learning programming language...
vonlubcke Says:
Oct 3, 2011 - Respond to this video... i guess to answer more precise to your question, this is not the place to start
salaschen Says:
Oct 6, 2011 - It's just awesome.
glub0t Says:
Oct 30, 2011 - i agree, it should be &arr[3] or arr + 3
jamesAboy19 Says:
Nov 28, 2011 - "does that make sence to people" not me -.-
walkerneo Says:
Dec 27, 2011 - WTF? Wouldn't ((char*)(&arr[1]))+8 bring him to &arr[3]? If the char is 1 byte, then you're moving 8 bytes from &char[1], which is two ints, which are each 4 bytes...
walkerneo Says:
Dec 27, 2011 - Yeah, it's a test. Everyone who commented on that is getting a scholarship to Stanford. Good job, you're in.
Vote4Drizzt Says:
Jan 5, 2012 - Brilliant teaching here, wish my school was as good(or my family rich enough for stanford).Also, does he sound like Nicolas Cage to anyone else?
imalsomemphis Says:
Feb 11, 2012 - even if your family was rich enough for stanford, you would still need to be really smart to get there. i read somewhere that only 9% of people who apply, actualy get accepted. They have pretty high standards
TJBecker512 Says:
Mar 12, 2012 - probably because you cannot even spell "sense"
retromelon123 Says:
Mar 17, 2012 - Well said, good sir!
unknownloverr Says:
Apr 9, 2012 - Learn and Go for an exam
addickable Says:
Apr 28, 2012 - Yeah, there is an error. But you still get the point which is most important.
jbolivar07 Says:
May 4, 2012 - why they are still using chalk?
MrRedicool Says:
May 19, 2012 - Uploaded by StanfordUniversity on Jul 18, 2008 ...












BacklTrack Says:
May 24, 2011 - "double d" I see what you did there.