final notes part a Flashcards
File Write Name Program Key Information:
-offstream-:aisle location]
-.open going tothe begining of next file
-txt file name
-output going to file to redress it where it is redsides
-\n without it we don’t know where to read it
Fstream:
able to get information from the file to the keyboard
ofrstream
outfile
string
Strings are used for storing text.
ifstream
infile
recursion
Recursion in C++ is a technique in which a function calls itself repeatedly until a given condition is satisfied. In other words, recursion is the process of solving a problem by breaking it down into smaller, simpler sub-problems.
base case
is a piece of code that allows us to end a recursive function
binarySearch() is a recursive function
that is used to find the required element in the array using binary search. The …
struct
Structures (also called structs) are a way to group several related variables into one place. Each variable in the structure is known as a member of the structure.
Unlike an array, a structure can contain many different data types (int, string, bool, etc.).
cmath
for the pow function
Adresses
-declare a variable(25)
-populate with a number(5)
-&x shows the adress display it
ctsd libary allows you ti
clear a system
pointer variable:
-memory adress
-it points to some piece of data that is stored in the comput
ers memory
-manipulate x (abc)
int variable
hold intergers
double var
hold floating point numbers