words.h 914 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* INFO THIS
  2. * file: words.h */
  3. /* USE THIS
  4. * L__LIB ".c"
  5. * L__LIB_WORD__TOOLS "word__tools.h"
  6. * L__LIB_WORDS__TOOLS "words__tools.h"
  7. * L__LIB_WORD "word.h"
  8. * L__LIB_WORDS "words.h" */
  9. # ifndef L_LIB_WORDS
  10. # define L_LIB_WORDS
  11. /* */
  12. # include <string>
  13. /* INCLUDE
  14. * std::string */
  15. /* */
  16. # include "word.h"
  17. /* INCLUDE
  18. * Word */
  19. /* */
  20. typedef struct Words
  21. {
  22. /* */
  23. public:
  24. /* */
  25. Word* head;
  26. /* */
  27. Word* tail;
  28. /* */
  29. public:
  30. /* */
  31. Word* select;
  32. /* */
  33. private:
  34. /* link to file */
  35. std::string link;
  36. /* char 0 for words[] (first line) and other number for words */
  37. std::string line;
  38. /* Words */
  39. public:
  40. /* INFO
  41. * do: COPY Words */
  42. Words (Words &words);
  43. /* INFO
  44. * do: Init Words */
  45. Words ();
  46. /* func-s */
  47. public:
  48. void
  49. print ();
  50. }
  51. /* initials */
  52. Words;
  53. # endif /* L_LIB_WORDS */