Flashcards
chapter 1.5
Flashcards do conjunto (14)
- 1first line, includes a service for stream input/output#include
- 2second directive for every program to avoid naming conflictsusing namespace std;
- 3main functionint main()
{
...
return 0;
} - 4to display values within main functioncout <<
- 5cout << text stringenclosed in quotation marks
- 6at the end of each sentence;
- 7to go to the next lineendl
- 8display quotation marks within string\''
- 9how to display backslash within string\\
- 10another way to start a new line\n
- 11code lines for user inputstring user_input;
getline(cin, user_input); - 12code line at beginning to acces data type to enable user input#include
- 13code for a sum loopint sum=0;
for (int i=?; i<=?; ++i)
{sum +=i;}
cout< - 14code for a product loopint product=1
for (int i=?; i<=?; ++i)
{product *=i;)
cout<
Informações
- Descrição
- Computer Science FlashCards sobre chapter 1.5, criado por Marie Overing em 17-07-2017.
- Criado por
- Marie Overing
- Visualizações
- 1
- Avaliação
Mais sobre Conditionals and Loops