How to access array elements in a struct with pointors C++

前端 未结 0 1806
醉梦人生
醉梦人生 2020-12-13 05:15

I have the following function and the following struct.

void function(TestStruct *array) {   
  for (int i = 0; i < 3; i++){
     array[i].value = 0;
              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题