how can i get index of inserted number in 2d array | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

how can i get index of inserted number in 2d array

10th Feb 2022, 7:32 PM
Nicholas Tsuoa
Nicholas Tsuoa - avatar
2 Antworten
+ 1
You need to search the inserted number in the whole array, wheather it was one dimensional or two dimensional array.
10th Feb 2022, 9:26 PM
Mohammed
0
At insertion? Save the iterator into a temp var. Or std::find if its a container.
11th Feb 2022, 9:14 AM
István