Filter By
Filter Reset
Semester
Class Notes (1,032,887)
US (405,190)
OSU (655)

Class Notes at Oregon State University

24HR Notes

The notes and past exams you need. Available 24 hours after each lecture.

CS 161 Lecture Notes - Lecture 21: Protein Bar, Semicolon
24HR
Premium

CS 161 Lecture 21 Structs and Objects Objects o CS represents all objects and data types Like ID cards o The world is filled with them o Often made of mixed types o Examples: Book Title, pages, authors Protein bar Nutritio...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture 20: C-style String Activity
24HR
Premium

CS 161 Lecture 20 CStyle String Activity CString Functions o Recall cstyle string are null terminated o Means we can use cstring library o We can also make all of these by hand o Useful Strlen > length of string up to (not...

Computer Science
CS 161
J.Parham Mocello
Mathematics
MTH 252H
Jesse Andrews
MTH 252H Lecture 25: Tank Problems & Differential Equation
24HR
Premium

Scanned by CamScanner

Mathematics
MTH 252H
Jesse Andrews
MTH 252H Lecture 22: Improper Integrals & Separable ODE's
24HR
Premium

Scanned by CamScanner

Mathematics
MTH 252H
Jesse Andrews
MTH 252H Lecture 23: Ordinary Differential Equation
24HR
Premium

Scanned by CamScanner

Mathematics
MTH 252H
Jesse Andrews
CS 161 Lecture 19: Command Line and More Practice
24HR
Premium

CS 161 Lecture 19 Command Line and More Practice Make it Better: Command Line Arguments o Command line arguments allow you to take input from the user before running your program o Array of cstyle strings o Run program wit...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 18: Multiplication Table
24HR
Premium

CS 161 Lecture 18 Practice with Arrays and Command Line Exercise: Multiplication Table o Design a small program which will take the number of rows and columns from the user and generate a multiplication table o What functi...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 15: Memory Leak, Dynamic Array, Sizeof
24HR
Premium

CS 161 Lecture 15 Arrays and Functions Recap o Properties of Arrays: Arrays are just pointes (dereferenced by []) They have a finite size You cant add things, but you can allocate new memory, but then you lose memory They ...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 11: Call Stack, Inductive Reasoning
24HR
Premium

CS 161 Lecture 13 Recursion What is Recursion? o When a function calls itself one or more times (directly or indirectly) o Form of repetition o Typically used to perform same operation on smaller subset and then build the ...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 14: Memory Address, Farkle
24HR
Premium

CS 161 Lecture 14 1D Arrays Arrays o An order arrangement of related items o Colloquially called lists Caution: lists are an actual data structure that behave differenctly from arrays o Examples Array of numbers such as in...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture 16: Character Arrays
24HR
Premium

CS 161 Lecture 16 Character Arrays NULL o NULL just means 0 or, more specifically: 0x000000000000 o All of your pointers should be pointing to NULL when you are not using them o Fittingly, NULL has ASCII value of zero o Vo...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 13: Memory Address, Global Variable, Memory Leak
24HR
Premium

CS 161 Lecture 13 Pointers and Memory Model Warm Up o Pass by value Parameter listing: int num1, int num2 What is actually being passed: copy of a value Does the function body need to change: no Function call: increments_b...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 12: Memory Address, Dereference Operator
24HR
Premium

CS 161 Lecture 12 Different Ways to Pass Parameters (Short Lecture, Guest Speaker from College of Engineering) How We Have Been Passing By Value o Also referred to as call by value o Copies the value into the formal parame...

Computer Science
CS 161
J.Parham Mocello
CS 161 Lecture Notes - Lecture 17: C String Handling, Dynamic Array
24HR
Premium

CS 161 Lecture 17 Multidimensional Arrays Minor Corrections o Char arrays which are null terminated are Cstyle strings That means you can use functions from <cstring> (string.h) on them o Char arrays do not need to be null...

Computer Science
CS 161
J.Parham Mocello

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit