Hints for OOP344 Assignment 1

From CDOT Wiki
Revision as of 16:59, 22 September 2011 by Qtdang1 (talk | contribs) (Created page with 'OOP344 - 20113 ESCAPE KEY: #1- Allocate memory to size of strlen(str). #2-copy the content of str into allocated memory. #3- If ESCAPE is hit, copy the content of allocated mem…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OOP344 - 20113

ESCAPE KEY:

  1. 1- Allocate memory to size of strlen(str).
  2. 2-copy the content of str into allocated memory.
  3. 3- If ESCAPE is hit, copy the content of allocated memory back to str.
  4. 4- Make sure before the function ends, deallocates the allocated memory.