C++ chap 1 thru 3

Card Set Information

Author:
lacythecoolest
ID:
308654
Filename:
C++ chap 1 thru 3
Updated:
2015-09-28 00:04:36
Tags:

Folders:
computer information system
Description:
arbutine buffalo state
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user lacythecoolest on FreezingBlue Flashcards. What would you like to do?


  1. central processing unit
    carries out arithmetic and logical operations
  2. each cell has a unique location in main memory called
    address of the cell
  3. input devices
    • keyboard
    • mouse
    • files
  4. output devices
    • monitor
    • printer
    • files
  5. translates a program written in a high level language into machine language
    compiler
  6. use the compiler to:
    • check programs obeys language rules
    • translate
  7. C++ program steps 1 to 6
    • editor
    • preprocessor
    • compiler
    • linker
    • loader
    • excution
  8. if theres a syntax error go from compiler to
    editor(step 1)
  9. step by step problem solving process
    * solution achieved in finite amount f time
    algorithm
  10. students names
    test scores
    types of data
  11. problem solving process (3 steps)
    • 1. analyze problem, design algorithm
    • 2. implement algorithm in code
    • 3. maintain the program
  12. a memory location whose contents can be changed
    variable
  13. collection of statements; when executed, accomplishes something
    function
  14. rules that specify which statements, are legal or valid
    syntax
  15. determine the meaning of the instructions
    semantic
  16. set of rules, symbols and specials
    programming language
  17. the smallest individual unit of a program written in any language, ie. +, -, <=, ect
    token
  18. int
    float
    double
    char
    const
    void
    return
    reserved word symbols
  19. the name of something that appears in a program, letters, digits and underscore only
    identifiers
  20. cout cin
    identifier
  21. floating point
    decimal numbers
  22. integral
    integers numbers without a decimal
  23. bool
    true or false
  24. used for single characters, letters, digits and special symbols
    • char data
    • 'A'
  25. %
    modulus, remainder is the used value
  26. +
    addition
  27. -
    subtractin
  28. *
    multiplication
  29. /
    division
  30. the number of values on which the operators will work
    • operands
    • can be unary or binary
  31. precedence of arithmetic operators
    • */% from left to right
    • then
    • +- from left to right
  32. operator that defines if a value is going to be integer, whole value or double, decimal
    • static_cast<int>
    • or
    • static_cast<double>
  33. memory location whose content can't change during execution
    named constant
  34. memory location whose content may change during execution
    variable
  35. variable =
    expression
  36. is used with >> to gather input
    • cin
    • can gather multiple amounts of info
  37. used to format the output
    manipulator
  38. declare things, such as variables
    declaration statements
  39. perform calculations, manipulate data, create ouput, accept input, etc
    executable statements
  40. I/O:
    sequence of characters from source to destination
    • stream
    • istream-input
    • ostream-output
  41. two variables of iostream
    • cin
    • cout
  42. how to enter numbers raised to a power
    • pow(x,y) where x is raised to the power of y
    • x^y
  43. what to use to include any sort of text input
    ie name on project
    cin.get(varChar);
  44. function to discard a portion of the input
    cin.ignore(intExp,  chExp);
  45. places previus character extracted by the get function from an input stream back to that stream
    • putback function
    • istreamVar.putback(ch);
  46. returns next character from the input stream
    does not remove the character from that stream
    • peek function
    • ch=istreamVar.peek();
  47. a function t restore input stream failure to a working state
    istreamVar.clear();
  48. header file for setprecision(n) or setting distance in a line or column
    parameterized manipulators
    #include <iomanip>
  49. reads until end of current line
    getline
  50. setfill
    left right
    unsetf
    formatting tools
  51. fstream contains the definitions of:
    ifstream and ofstream

What would you like to do?

Home > Flashcards > Print Preview