Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

ValueRef

 

Demonstrates Value referencing/mutating operations

 

 

ValueRef.cpp

 

#include <Core/Core.h>

 

using namespace Upp;

 

CONSOLE_APP_MAIN

{

    StdLogSetup(LOG_FILE|LOG_COUT);

    Value v;

    for(int i = 0; i < 3; i++) {

        Value& p = v.At(i)("person");

        p("name") = "Name" + AsString(i + 1);

        p("lastname") = "LastName" + AsString(i + 1);

    }

    LOG(AsJSON(v));

}

 

 

 

 

Do you want to contribute?