auto tag

1 questions


2 answers
156 views
0
How to Use For Statements Using C++ Auto

int * buff = new int[10];for(auto x : buff?? ){ x = 0;}I want to initialize all the buffs that were assigned dynamically to zero, buff?Please tell me how to write down.I tried buff[], buff, etc., but ...


© 2024 OneMinuteCode. All rights reserved.