Home > Back-end >  Json: : Value assignment single characters how to operate
Json: : Value assignment single characters how to operate

Time:05-22

 char s='1'; 

Json: : Value vReq;

VReq (" id ")=Json: : Value (s);

So the id of the corresponding vReq is 49 (ASCII value), rather than a single character 1
In addition to s into the string this method first, what the easiest way to make id corresponding to a value of 1
  • Related