• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/15

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

15 Cards in this Set

  • Front
  • Back
Where and how and why would you use individual standard namespace declarations?
"-For example, 'using std::cout;' outside of the main().
What causes a 'garbage' value to appear in a program?
"Must give a variable a value before it is used, otherwise it will give a garbage value, e.g.,
What are '>>' when used with cin?
extraction operators
What does == do?
"comparison operators
What is endl; and what is its function?
"a stream manipulator.
Why is endl; useful?
"-Useful when writing to files to make sure that bytes make their way into a file
What function does the != operator perform?
"not equals
C++ is an 'extensible language'. What does this mean?
you can add your own data types to the language.
What does this do?"
It creates a variable of the type Gradebook called myGradeBook. This is declaring an object. It creates and allocates memory for that object
What would this do?"
This tells the object 'myGradeBook' to perform a task 'display a message'.
When an object is told to perform a task, which operator is used?
"The dot operator, which is the 'member selection operator', which allows the programmer to tell an object to use one of its members.
how do we define that object?"
As we are declaring our own datatype here, like an int declaration, we have to define that by defining a 'Class'.
};//extremely important to remember ';'"
any client code, such as main, is allowed to create objects of that class and invoke the public member functions of that class. This will provide functionality to the users of that class.
What’s the purpose of the ‘getline’ function?
If you use ‘cin’ it will only take in one token at a time. If you use spaces or more than one word you will need to use getline to take in the string.
What would cout << endl; do?
Output a blank line