Flashcards
c++ basics
Cards in this deck (22)
- 1To show cerain text on screenCout"(insert text)"
- 2what is an IDE?an Integrated Development Environment (IDE) contains all of the things you need to develop, compile, link, and debug your programs
- 3What is a project on an IDE?Some IDEs call projects “workspaces”, or “solutions”. The project stores the names of all the code files we want to compile, and also saves various IDE settings. Every time we reopen the project, it will restore the state of the IDE to where we left off. When we choose to compile our program, the project tells the compiler and linker which files to compile and link. It is worth noting that project files for one IDE will not work in another IDE.
- 4What is a console project?. A console project means that we are going to create programs that can be run from the dos or linux command-line. By default, console applications have no graphical user interface (GUI) and are compiled into stand-alone executable files.
- 5How to import a function into a source file?#include
- 6What are keywords?Keywords have a special meaning in a language, and are part of the syntax.
- 7What are reserved words?Reserved words are words that cannot be used as identifiers (variables, functions, etc.), because they are reserved by the language.
- 8Which function controls the entire program?int main()
{(insert definition(s)} - 9What symbol is used to terminate each line of a code?semicolon ;
- 10What function is ised before ending a code?getch()
- 11Which symbol creates a single lien command to ignore all everything to the end of the line?The // symbol begins a C++ single-line comment, which tells the compiler to ignore everything to the end of the line
- 12What else is // used for?It is uused to pausea program on a console windows
- 13How to move to next line?<< endl or "\n" is using for line break or next line
- 14What is cin used for?To get input from users
- 15what is a function?An event occuring at a specific time
- 16how to identify a function?It has a name and then a parenthasis such as function()
- 17where is the declaration of a function?After the library and before int main()
- 18What are operands?Operands are the objects of an expression that are acted upon. Operands supply the data that the expression works with.
- 19What is whitespace?Whitespace is a term that refers to characters that are used for formatting purposes
- 20when using an operator to break a line, where should it be placed?the operator should be placed at the end of the line, not the start of the next line
- 21When is the return value placed in a code?At the end of the code before the }
- 22What are the different variables in c++?String + Character, Integers, Floating Points + Double and Boolean
Information
- Description
- Flashcards on c++ basics, created by Zahra Hassan on 11/04/2014.
- Created by
- Zahra Hassan
- Views
- 34
- Rating