{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lec12 - Lecture 12 Arrays Uses Notation Part I of and need...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Lecture 12 Arrays part I Lecture 12 Arrays Part I Definition of and need for Uses Notation A simple example Character arrays (strings)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Lecture 12 Arrays part I Definition of and need for An array is a list of items numbers or characters or locations in memory Identified by a single variable name and an index or location in the list Needed for repetitive calculations allows using one variable name that can be indexed within a loop avoids using multiple variable names
Image of page 2
3 Lecture 12 Arrays part I Uses Storing data Manipulating data Analyzing data Creating tables Creating graphs
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 Lecture 12 Arrays part I Notation example: the variable a is a one dimensional array of size four 3 2 1 0 a a a a = a Starting with zero index is a C++ “unusual” feature. Got to get used to it! location zero (or index zero) defining an array in C++: type variablename[size of array];
Image of page 4
5 Lecture 12 Arrays part I A simple example
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern