Dictionary parsing by rule #8

Open
opened 2023-12-02 19:16:02 +00:00 by tea · 0 comments
Owner

The dictionary will have the following rules:

  • Dict syntax: [a number][0 to n spaces]:[0 to n spaces][any printable characters]\n
  • Numbers are to be handled the same way atoi handles them.
  • You will trim the spaces before and after the value in the dictionary.
  • The dictionary will always have at least the keys as in the reference dictionary.
  • Their value can be modified, more entries can be added, but the initial keys can’t be removed.
  • You only need to use the initial entries (For instance, if we add 54: fifty-four, you still have to use 50: fifty and 4: four)
  • The entries of the dictionary can be stored in any order.
  • There can be empty lines in the dictionary.
  • If you have any errors from the dictionary parsing, your program must output Dict Error\n"
  • If the dictionary doesn’t allow you to resolve the asked value, your program must output "Dict Error\n".
The dictionary will have the following rules: - [ ] Dict syntax: `[a number][0 to n spaces]:[0 to n spaces][any printable characters]\n` - [ ] Numbers are to be handled the same way atoi handles them. - [ ] You will trim the spaces before and after the value in the dictionary. - [ ] The dictionary will always have at least the keys as in the reference dictionary. - [ ] Their value can be modified, more entries can be added, but the initial keys can’t be removed. - [ ] You only need to use the initial entries (For instance, if we add 54: fifty-four, you still have to use 50: fifty and 4: four) - [ ] The entries of the dictionary can be stored in any order. - [ ] There can be empty lines in the dictionary. - [ ] If you have any errors from the dictionary parsing, your program must output Dict Error\n" - [ ] If the dictionary doesn’t allow you to resolve the asked value, your program must output "Dict Error\n".
tea added this to the C Piscine Rush 02 project 2023-12-02 19:24:59 +00:00
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tea/c_piscine_rush_02#8
No description provided.