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

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;

11 Cards in this Set

  • Front
  • Back

2.1: concept: C++ programs have parts and components that serve...

a specific purpose

How do you start a comment in C++?

with two forward slashes (//). The complier ignores everything from the double slash to the end of the line.

Are comments important important to programmers? If so, why?

Yes. They are important because they help explain what's going on.

What is a preprocessor directive?

a line that starts with a #.

Think of a preprocessor as a program that "_____ ___" your source code for the compiler.

sets up

Where should a header file be included in the program?

at the head or the top. Ex. <iostream>

What are three examples of program entities that must have names?

1. Variables


2. Functions


3. Objects

Why does C++ use namespaces?

to organize the names of program entities. Ex. std

What is the reason a program needs access to the namespace std?

because every name created by the iostream file is part of that namespace.

In order for a program to use the entities in iostream, it must have ______ to the ____ namespace.

acces, std

What is a function?

a group of one or more programming statements that collectively has a name. In this case the function name is: main()