Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.00 KB | None | 0 0
  1. #include <stdio.h> 
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <conio.h>
  5.  
  6. typedef struct element_s element_t;
  7.  
  8. typedef struct{
  9.     char* key;
  10.     int val;
  11. }mapElement_t;
  12.  
  13. typedef struct {
  14.     mapElement_t* Elements;
  15.     unsigned int size;
  16.     int allocated;
  17. }map;
  18.  
  19. void map_map(map *currentMap)
  20. {
  21.  
  22. }
  23.  
  24. void map_insert(map *currentMap)
  25. {
  26.  
  27. }
  28.  
  29. int map_find(map *currentMap)
  30. {
  31.  
  32. }
  33.  
  34. void map_delete(map *currentMap)
  35. {
  36.  
  37. }
  38.  
  39. void map_destruct(map *currentMap)
  40. {
  41.  
  42. }
  43.  
  44. void map__increase(map *currentMap)
  45. {
  46.  
  47. }
  48.  
  49. void map__decrease(map *currentMap)
  50. {
  51.  
  52. }
  53.  
  54. int main(void)
  55. {
  56.     char str[1024];
  57.     scanf_s("%s", &str);
  58.     if (strcmp("ADD", str) == 0 || strcmp("add", str) == 0)
  59.     {
  60.  
  61.     }
  62.     else if (strcmp("GET", str) == 0 || strcmp("get", str) == 0)
  63.     {
  64.  
  65.     }
  66.     else if (strcmp("DELETE", str) == 0 || strcmp("delete", str) == 0)
  67.     {
  68.  
  69.     }
  70.     else if (strcmp("MAP", str) == 0 || strcmp("map", str) == 0)
  71.     {
  72.  
  73.     }
  74.     else if (strcmp("DONE", str) == 0 || strcmp("done", str) == 0)
  75.     {
  76.         return 0;
  77.     }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement