cse 31

Card Set Information

cse 31
2014-08-12 16:56:00

have descriptions of what to do before coding
Show Answers:

Home > Flashcards > Print Preview

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

  1. variables are declared before they are used
  2. #include
    tells the compiler where to find information about the items used in the program
  3. namespace
    allows data, methods and classes to have the same name
  4. header files
    • declaration of a class
    • .h
    • doesn't contain the code
    • include more .h files if it works but no .cpp
  5. source files
    • definition of a class
    • # " .h "
  6. # begins preprocessor directive
    () naming function

    {} enclose statements

    <> enclose files

    cout <<

    cin >>
  7. variables can't have a period or the first digit as a number. It must also not have spaces without underscore
  8. matrix[R][C]
    R is vertical columns

    Column is horizontal
  9. %-string of characters where one of its many arguments is to be substituted and in what form it is to be printed
    • %d means an integer argument
    • %c means a character
    •  placing a number between & and c or d would create a right-justified field
  10. = means assigned

    == means this should be equal to this
  11. 8 bit = 1 byte

    N bits <----> 2^N things
  12. static storage
    global variable storage, permanent. variables declared outside a procedure
  13. The Stack
    local variable storage, parameters, return address. Declared inside a procedure
  14. Heap
    data lives until deallocated by programmer
  15. allocate
    to set apart for a particular purpose
  16. convert from binary to hex
    ex 1010 to base 16

    (1*16^3) + (0*16^2) + (1*16^1) + (0+16^0)

    = 4112 (in decimal)
  17. datapath
    • the component of the processor that 
    • performs arithmetic operations
  18. control
    • command datapath, memory
    • and I/O
  19. Memory: storage area in which programs
    are kept when they are running and that contains the data needed by the running programs
  20. sign/mag and 1' s complement have 
    the most problems
  21. map is an interface
    see lect 18 in cse 31 folder under lecture
  22. get
    returns the value for that key
  23. put
    takes a key and a value and adds them to map
  24. argc: contain the number of strings on the command line(argument count)

    argv: array of character pointers
  25. address
    referring to a memory location
  26. value
    stored in that location
  27. pointer
    a variable that contains the address of a variable see lect2 in cse31
  28. & operator
    get address of a variable
  29. * dereference operator
    get value pointed to
  30. opcode
    field that detonates the format and operation of an instruction
  31. R-type (register)
  32. I type (immediate)
    used by  immediate and date transfer instructions

What would you like to do?

Home > Flashcards > Print Preview