• 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/25

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;

25 Cards in this Set

  • Front
  • Back
functions
All procedure like entities are called functions in C++ . Things that are called procedures, methods, functions, or subprograms in other languages are all called functions in C++.
program
A C++ program is basically just a function called main;
This line says that main is a function with no parameters that returns int its value
int main ( )
The program ends when the following statement is executed
return 0 ;
This statement ends the invocation of the function main and returns 0 as the function value
return 0 ;
String/ C-string
The text inside the quotation marks
This is a symbol for a newline character which instructs the computer to start a new line of output
\n
Identifier
The name of a variable or other items you might define in a program
A C++ identifier must start with
A letter or the underscore symbol
All the rest of the characters in an identifier must be
Letters, digits, or the underscore symbol.
True or false: C++ is a case sensitive language
True
True or false: a C++ identifier can be of any length
True
Keyword or reserved word
Special class of identifiers which have a predefined meaning in C++ and cannot be used as names for variables or anything else
Every variable in a C++ program must be ______ before it is used
declared
What are you telling the compiler and the computer when you declare a variable ?
What kind of data you will be storing in the variable
What type of number is an int ?
Whole number
The type int is one of the types for____
whole numbers
type double
One of the types for numbers with a decimal point known as floating-point numbers
When there is more than one variable in a definition, the variables are separated by ___
commas
Each definition/ variable declaration ends with a
semicolon
True or false: every variable must be declared before it is used
True
True or false: variables cannot be declared any place
False: variables may be declared any place
Typically where are variables declared ?
Either just before they are used or at the start of a block ( indicated by an opening brace { )
The ranges for the types float, double, and long double are the ranges for _____ numbers
positive
To use the String class you must first include the string library by adding what code at the top of your program?
#include <string>