CHAP 7 STRINGS Flashcards
(10 cards)
getch();
get character function
the + operator can be used between strings to add them together to make a new string.
concatenation
used to store multiple values in a single variable. a group or collection of similar kinds of elements or data items that are stored together in contiguous memory spaces
array
a pre defined function in , <>
conio.h
get character
contains a collection of character surrounded by double quotes
string
can also be defined as character array
string
string functions
length, input, ignore, substring, insert, replace, erase, find, assign
The array [ ] starts from [ ] and goes up to [ ] (where N is the total number of elements in the array). Programming languages are designed in such a way that the array name always points to the first element of an array.
index
zero
N-1
reads a single character from the keyboard and it doesn’t echo to the console and doesn’t wait for an enter to store variable.
get character
to use [ ], you must include an additional header file in the source code. it is called [ ]
string
<string>
</string>