C++

Description

Learning C++ Programming Language for Game and Software Development
Rob Newman
Flashcards by Rob Newman, updated more than 1 year ago
Rob Newman
Created by Rob Newman about 8 years ago
281
9

Resource summary

Question Answer
What does a compiler do? A compiler takes the source code you can read and write, and transforms it into a different format. Like object files.
What happens to object files after they are compiled? They are linked together to make an executable file.
The three times that are important at the lifetime of a C++ program are? Compile time, link time and run time.
What is the shortcut key to view an error in visual studio docs? F1
To put characters on the screen for the user to read you use Stream I/O. Explain Stream I/O? I/O stands for Input/Output. It can read input from the keyboard and write input to the screen Or it can read from files or write to files.
C++ supports stream with I/O operators What are 2 operators and what do they do? >> Sends something to a stream << reads something from a stream
What is #include? #include will include a file into your application #include <iostream> It opens up a world of libraries and capabilities. (for libraries you need to also link-in the library)
Variables in C++ hold information. A variable can only hold 1 particular type of information. Variable can be user defined. Give 5 examples of variables. String, Integer, Date Employee, Job title,
True of false. Variables must be declared before they are used? True
What are namespaces and what are they used for? Namespaces are used for preventing name conflicts, so you may have two classes with the same name in different namespaces. Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries.
Declare a variable, initialize the variable then print out the variable. int i; i = 3; cout << i << endl;
Declare a float, initialize the float then print out the float float i; i = 4.3f; cout << i << endl;
What is a function? A function is a bit of code you want to use repeatedly. You give it a name so that it can be called.
Write out a basic function? Int add (int x, int y) { Return x+ y. }
Now call the function? Int a = add(3,4);
What is overloading? Having two functions with the same name but different parameters
Describe a c++ function? A function is a group of statements that together perform a task. Every C++ program has at least one function, which is main()
What will this function return? 8
The first result is 5 The second result is 5 The third result is 2 The fourth result is 6
Show full summary Hide full summary

Similar

Useful String Methods
Shannon Anderson-Rush
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Historical Development of Computer Languages
Shannon Anderson-Rush
Polymer 2.0 - Custom Element - Register Element
Ravi Upadhyay
Code Challenge Flow Chart
Charlotte Hilton
Flvs foundations of programming dba 2
mariaha vassar
Mapa Conceptual - Arreglos
ciroivan94
Vector
Ariel Sanchez
OOP Phase Test (Summer)
b3014292
C# Fundamentals
Robert Mulpeter
Pears of Wisdom - Groovy Fundamentals
Alex Poiry