Is there any way to change only one value in structure?

Seems i need to make a C++ function to automate it. Thx