From 3f96d049e57013fdd2ab7862fb002eb2521b59d6 Mon Sep 17 00:00:00 2001 From: "Marian W." Date: Sun, 2 Feb 2025 05:40:57 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 26c92f2..eebcff4 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ int main() MiniPPFile::Section* gameSection = nullptr; result = root.GetSubSection("game", &gameSection); + // "Easy" API + int64_t test = gameSection.GetValueOrDefault("year", 1999); + + // Verbose API MiniPPFile::Values::StringValue* nameValue = nullptr; result = gameSection->GetValue("name", &nameValue); MiniPPFile::Values::IntValue* yearValue = nullptr;