diff options
| -rw-r--r-- | yandere.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
| diff --git a/yandere.cpp b/yandere.cpp index b9d42ec..4edb550 100644 --- a/yandere.cpp +++ b/yandere.cpp | |||
| @@ -94,8 +94,15 @@ int main(int argc, char** argv) | |||
| 94 | if (line.empty()) | 94 | if (line.empty()) |
| 95 | { | 95 | { |
| 96 | newgroup = true; | 96 | newgroup = true; |
| 97 | } else if (line.substr(0, 2) == "{*") { | ||
| 98 | std::string token = line.substr(2, line.find("}")-2); | ||
| 99 | for (const std::string& other : groups[token]) { | ||
| 100 | groups[curgroup].push_back(other); | ||
| 101 | std::cout << curgroup << " *" << token << ": " << other << std::endl; | ||
| 102 | } | ||
| 97 | } else { | 103 | } else { |
| 98 | groups[curgroup].push_back(line); | 104 | groups[curgroup].push_back(line); |
| 105 | std::cout << curgroup << ": " << line << std::endl; | ||
| 99 | } | 106 | } |
| 100 | } | 107 | } |
| 101 | } | 108 | } |
