fork download
  1. typedef struct DictionaryEntry_s {
  2. char *key;
  3. char *value;
  4. } DictionaryEntry;
  5.  
  6. typedef struct Dictionary_s {
  7. char *name;
  8. DictionaryEntry* values;
  9. } Dictionary;
  10.  
  11. //How can I do the following:
  12. DictionaryEntry myDictionary0[] = {
  13. {"good", "cool"},
  14. {"bad", "evil"},
  15. {"awesome", "me"},
  16. {"like", "love"}, //etc....
  17. {0} //terminator
  18. };
  19. Dictionary myDictionary[] = {
  20. {"synonyms", myDictionary0},
  21. // ...
  22. {0} //terminator
  23. };
  24.  
  25. int main() { return 0; }
Success #stdin #stdout 0.02s 1672KB
stdin
Standard input is empty
stdout
Standard output is empty