C++ FUNdimentals Flashcards
What is the “Entry Point” function for C++
the main() function
int main()
{
}
What is a function?
A function contains a series of instructions. When the function is run each of the instructions is carried out from first to last.
What is the function header?
Contains the name of the function
What is the Function body?
Contains all the function commands
How do you finish a code statment in C++
It has to end in ; or the computer won’t recognize it.
Programmers create libraries that are fille with completed functions. How to you add them to your program?
include <partyLibrary></partyLibrary>
Using the #include directive
How do you call a function?
by putting the name of the function ending with();
How do you input strings in the printf(); function?
Using “ “ around the text you want to have entered
How do you write a comment in C++?
/* comment */
You can do multiple lines by doing:
/*
*hello
*goodbye
*/
what are the two different kinds of files that #include uses?
<> and “”
The angle brackets are ones that have been created and are built into the language.
the quotes are external libraries and have to be downloaded.
They have the proper header file extension called .h
How do you initialize a window pop up using the raylib.h library?
using the function initWindow();
How do you initialize a window pop up using the raylib.h library?
using the function initWindow();
Some functions have multiple paramaters. (think excel. Separated by commas)
VERY IMPORTANT
What parameters does InitWindow require?
InitWindow(width, height, title);
What is an Integer?
A whole number
1, 75, -100