Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #pragma once
  2. #include <iostream>
  3. #include <string.h>
  4.  
  5. const unsigned int maxLines = 10u;
  6. const unsigned int maxChars = 10u;
  7.  
  8. class ctxt
  9. {
  10. public:
  11. ctxt()
  12. {
  13. m_currentLines = 0;
  14. }
  15. ~ctxt()
  16. {
  17. for(int i = 0; i < maxLines; ++i)
  18. {
  19. delete[] m_txtList[i];
  20. }
  21. }
  22. void scan();
  23. void print();
  24. void sort();
  25. private:
  26. char * m_txtList[maxLines];
  27. unsigned int m_currentLines;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement