answer03.c 698 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Please fill the functions in this file.
  3. * You can add additional functions.
  4. *
  5. * Hint: It is very likely that you need to write additonal functions.
  6. */
  7. #include "pa03.h"
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. /*
  11. * Hint: You may create additional arrays if needed.
  12. * The maximum size needed is specified by MAXLENGTH in pa03.h.
  13. */
  14. void partition(int value)
  15. {
  16. printf("partition %d\n", value);
  17. }
  18. /*
  19. * =================================================================
  20. */
  21. void subset(char * charset, int length)
  22. {
  23. printf("subset of ");
  24. }
  25. /*
  26. * =================================================================
  27. */
  28. void permute(char * charset, int length)
  29. {
  30. printf("permute ");
  31. }