You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I am new and learning C++ for the first time and want to store data from my C++ application to a .json file and read the data again in C++.
My example .json file:
How could I read the json file and store Name1's Food (Candy) as a string in C++? Along with the Name1's Number and Name2's items.
And how could I write to the json file and save it? So that I can change Name1's Food to something like cookies?
And last but not least, how could I delete a part of the json file in C++? For example, if I want to delete the Food id or the Name2.
Beta Was this translation helpful? Give feedback.
All reactions