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
a generic term that describes any consecutive sequence of characters
|
strinf
|
|
what is the literal representation of a string in a program
|
string literal or string constant
|
|
this term describes a string whose characters are stored in consecutive memory locations and are followed by a null character or null terminator
|
C-string
|
|
this is an abstract data type. this means it is not built in, primitive data type like int or char. instead it is a programmer-defined data type that accompanies the C++ language
|
the string class
|
|
whats the header to use the string class
|
#include <string>
|
|
Describe this definition
string set1(set2, 5) |
defines a string object named set1, which is initialized to the first 5 characters in the characters in the character array set2
|
|
this member function returns the length of the string stored in an object
|
.length();
|
|
what are abstract data types (ADT)
|
data types created by the programmer
|
|
True or False
its possible for a structure variable to be a member of another structure variable |
true, its called nesting structures
|
|
a function may return a structure T/F
|
true
|
|
A data type defined by the programmer consisting of variables and functions
|
class
|
|
what is the format of a class declaration
|
class ClassName{
declaration; //....more declarations //may follow }; |
|
True or False
the members of a class are public by default |
false, they are private by default
|
|
What are private class members
|
They cannot be accessed by programming statements outside the class
|
|
What are public class members
|
they can be accessed by code outside the class
|