css 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/42

encourage image

There's no tags or description

Looks like no tags are added yet.

43 Terms

1
New cards

Written with //

single line comment

2
New cards

written between /* and */;

multi line comment

3
New cards

Header file for input and output (cin, cout)

#include <iostream>

4
New cards

Lets you use cout and cin without the std:: prefix

using namespace std;

5
New cards

The function where program execution begins

main()

6
New cards

Ends every statement in C++

Semicolon (;)

7
New cards

Name of a variable or function; must start with a letter or underscore, with no spaces, no special characters, and not a keyword

Identifier

8
New cards

Data type for whole numbers

int

9
New cards

Data type for decimal numbers (single precision)

float

10
New cards

Data type for decimal numbers; more precise than float

double

11
New cards

Data type for a single character, written in single quotes like 'A'

char

12
New cards

Data type with the value true or false

bool

13
New cards

Sequence of characters written in double quotes

string

14
New cards

Declares a value that cannot be changed after initialization

const

15
New cards

Input stream; used with the >> operator

cin

16
New cards

Output stream; used with the << operator

cout

17
New cards

Moves the output to a new line

endl or \n

18
New cards

Gives the remainder of a division

%

19
New cards

Declared inside a function; automatic; destroyed when the function ends

local variable

20
New cards

Declared outside all functions; statically allocated

global variable

21
New cards

Copies the argument into the parameter; the original does not change

call by value

22
New cards

The position of an element in an array; always starts at 0

index

23
New cards

0 to size - 1 (for int a[5], indexes 0 to 4)

valid indexes

24
New cards

Using an invalid index; C++ has no guard against it, so it gives undefined behavior

array index out of bounds

25
New cards

ot allowed on arrays; you cannot copy (a = b) or compare (a == b) arrays directly, so use a loop

aggregrate operations

26
New cards
 A collection of components of the same type arranged in rows and columns, like a table
2D array declaration syntax :: dataType arrayName[rows][columns];


two dimensional array

27
New cards

Gives a type a new name; typedef int* IntPtr; then IntPtr p1, p2;

typedef

28
New cards

Special memory area reserved for dynamically allocated variables

freestore

29
New cards

A variable created with new and destroyed while the program runs

dynamic variable

30
New cards

Creates a dynamic variable in the freestore and returns a pointer to it

new operator

31
New cards

Special constant pointer value (actually the integer 0) given to a pointer that has no value

NULL

32
New cards

Destroys a dynamic variable and returns its memory to the freestore

delete operator

33
New cards

A pointer that no longer points to valid memory, such as after delete; set it to NULL to avoid problems

dangling pointer

34
New cards

A local variable that is created and destroyed automatically with the function call

automatic variable

35
New cards

A global variable

statically allcoated variable

36
New cards

An array created with new, e.g. d = new double[10];

dynamic array

37
New cards

A runtime problem that a program can detect and handle using try, throw, and catch

exception

38
New cards

Contains the code that might cause an exception

try block

39
New cards

Sends out a value to signal an exception

throw

40
New cards

Handles an exception; the parameter type must match the thrown value

catch() block

41
New cards

48 to 57

0 to 9

42
New cards

65 to 90

A TO Z (ALL CAPS)

43
New cards

97 to 122

a to z (mini)