Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <conio.h>
- typedef struct element_s element_t;
- typedef struct{
- char* key;
- int val;
- }mapElement_t;
- typedef struct {
- mapElement_t* Elements;
- unsigned int size;
- int allocated;
- }map;
- void map_map(map *currentMap)
- {
- }
- void map_insert(map *currentMap)
- {
- }
- int map_find(map *currentMap)
- {
- }
- void map_delete(map *currentMap)
- {
- }
- void map_destruct(map *currentMap)
- {
- }
- void map__increase(map *currentMap)
- {
- }
- void map__decrease(map *currentMap)
- {
- }
- int main(void)
- {
- char str[1024];
- scanf_s("%s", &str);
- if (strcmp("ADD", str) == 0 || strcmp("add", str) == 0)
- {
- }
- else if (strcmp("GET", str) == 0 || strcmp("get", str) == 0)
- {
- }
- else if (strcmp("DELETE", str) == 0 || strcmp("delete", str) == 0)
- {
- }
- else if (strcmp("MAP", str) == 0 || strcmp("map", str) == 0)
- {
- }
- else if (strcmp("DONE", str) == 0 || strcmp("done", str) == 0)
- {
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement