This document discusses how views of Millennials have changed over time. Early views portrayed them as optimistic team players, but more recent research shows Millennials hold slightly less critical views of businesses than older generations. However, the Great Recession transformed many Millennials from enthusiastic to anti-establishment. Millennials are still the most active users of social media, which has been influential in events like the Arab Spring uprisings.
This document discusses strings in C++. It explains that a string is a class that can be thought of as a new type of variable to store text. Strings store characters in an array and functions like length() can return the size. Strings can be concatenated using + or assigned using =. The getline() function reads a whole line of input including whitespace. Dot functions operate on specific string objects.
This document discusses how views of Millennials have changed over time. Early views portrayed them as optimistic team players, but more recent research shows Millennials hold slightly less critical views of businesses than older generations. However, the Great Recession transformed many Millennials from enthusiastic to anti-establishment. Millennials are still the most active users of social media, which has been influential in events like the Arab Spring uprisings.
This document discusses strings in C++. It explains that a string is a class that can be thought of as a new type of variable to store text. Strings store characters in an array and functions like length() can return the size. Strings can be concatenated using + or assigned using =. The getline() function reads a whole line of input including whitespace. Dot functions operate on specific string objects.
This document discusses arrays, including that they are used to store multiple elements of the same type in contiguous memory locations without needing separate variables. It explains how to declare and assign values to array elements, noting that the first element is index 0 and the last is size-1. The document provides some advice that arrays must have a variable type, elements should not be assumed initialized to zero, and to use separate loops for each task.
This document discusses arrays in functions and two dimensional arrays. It explains that arrays can be passed to functions by name without specifying the size. Functions receive arrays by reference by default. Two dimensional arrays can be thought of as a grid of rows and columns or as an array of arrays. The document provides an example of declaring and calling a 2D array function. It also includes a visualization of indexes in a 2D array.
This document discusses string manipulation functions in C++, including getting substrings using .substr(), inserting into strings with .insert(), finding substrings with .find(), comparing strings with relational operators, and equivalent functions for C-style strings like strlen() and strcat(). It provides examples of using .substr() to extract substrings by index and length, .insert() to add a substring, and .find() to locate a substring. It also notes that string comparisons consider ASCII values, so uppercase letters appear before lowercase.
This document discusses while loops and how to properly structure them. It explains that a while loop will repeat a set of instructions as long as a condition is true. It advises that the variable checked in the condition must be initialized before the loop and able to change inside the loop. The document also covers incrementing and decrementing as tools for iterating through loops, noting the differences between pre-increment, post-increment, and other shorthand forms.
This document provides information about the CS111 Lab course. It introduces Michael Gordon as the lab instructor and provides his contact information. It states that the lab counts for 30% of the overall course grade, with weekly quizzes and assignments making up that portion. Students will connect to a server called Venus to complete their work, accessing it through SSH Secure Shell Client. It provides instructions on how to set up an SSH profile to connect to the Venus server using the given host name and username.
This document discusses strings and classes in C++. It explains that classes allow programmers to create new types of variables, similar to how functions allow creating new operations. Strings are an example of a built-in class in C++. The document outlines various functions that can be used to manipulate strings, such as length(), size(), concatenation (+) and getline() to read a whole string including whitespace. It also explains using "dot" functions to call methods on a specific string object.
This document discusses arrays, including that they are used to store multiple elements of the same type in contiguous memory locations without needing separate variables. It explains how to declare and assign values to array elements, noting that the first element is index 0 and the last is size-1. The document provides some advice that arrays must have a variable type, elements should not be assumed initialized to zero, and to use separate loops for each task.
This document discusses arrays in functions and two dimensional arrays. It explains that arrays can be passed to functions by name without specifying the size. Functions receive arrays by reference by default. Two dimensional arrays can be thought of as a grid of rows and columns or as an array of arrays. The document provides an example of declaring and calling a 2D array function. It also includes a visualization of indexes in a 2D array.
This document discusses string manipulation functions in C++, including getting substrings using .substr(), inserting into strings with .insert(), finding substrings with .find(), comparing strings with relational operators, and equivalent functions for C-style strings like strlen() and strcat(). It provides examples of using .substr() to extract substrings by index and length, .insert() to add a substring, and .find() to locate a substring. It also notes that string comparisons consider ASCII values, so uppercase letters appear before lowercase.
This document discusses while loops and how to properly structure them. It explains that a while loop will repeat a set of instructions as long as a condition is true. It advises that the variable checked in the condition must be initialized before the loop and able to change inside the loop. The document also covers incrementing and decrementing as tools for iterating through loops, noting the differences between pre-increment, post-increment, and other shorthand forms.
This document provides information about the CS111 Lab course. It introduces Michael Gordon as the lab instructor and provides his contact information. It states that the lab counts for 30% of the overall course grade, with weekly quizzes and assignments making up that portion. Students will connect to a server called Venus to complete their work, accessing it through SSH Secure Shell Client. It provides instructions on how to set up an SSH profile to connect to the Venus server using the given host name and username.
This document discusses strings and classes in C++. It explains that classes allow programmers to create new types of variables, similar to how functions allow creating new operations. Strings are an example of a built-in class in C++. The document outlines various functions that can be used to manipulate strings, such as length(), size(), concatenation (+) and getline() to read a whole string including whitespace. It also explains using "dot" functions to call methods on a specific string object.