Printing Flashcards
Learning how to Print in C++
1
Q
To Print a string, int or bool to the screen, what function do you use?
A
cout «
2
Q
At the end of every line what character must be used?
A
; ( a semi-colon)
3
Q
How to make a newline character?
A
«_space;endl; or on a new line cout «_space;endl;
4
Q
How do you make a single line comment comment in C++?
A
A double dash at the beginning of the line //
5
Q
How do you make a block comment in C++?
A
A dash and asterisk at the start of the block and a inverted dash and asterisk at the end. /* and */
6
Q
What is an IDE?
A
An integrated development environment is a computer program that makes it easier to write other computer programs.