Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. /*-----------------------------------------------------------------------------
  2. Name: Value Operator for class String
  3.  
  4. Purpose: Assign a new string by copying an existing string from an array
  5. Receive: The array to be copied into the string
  6. ------------------------------------------------------------------------------*/
  7.  
  8. String::String(const char Array[])
  9. {
  10. unsigned i = 0;
  11.  
  12. while (Array[i] != '\O')
  13. {
  14. Mem[i] = Array[i];
  15. i++;
  16. }
  17.  
  18. Length = i;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement