From 2dd3ddded35d533f523fec653d227c09aebb6fdf Mon Sep 17 00:00:00 2001 From: Faizan Ahamed Date: Tue, 21 Apr 2020 21:53:25 +0530 Subject: [PATCH] Update searching_of_element_in_dynamic_array.cpp --- .../searching_of_element_in_dynamic_array.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dynamic_programming/searching_of_element_in_dynamic_array.cpp b/dynamic_programming/searching_of_element_in_dynamic_array.cpp index 840af3e66..377d61428 100644 --- a/dynamic_programming/searching_of_element_in_dynamic_array.cpp +++ b/dynamic_programming/searching_of_element_in_dynamic_array.cpp @@ -64,10 +64,11 @@ int main() for (i = 0; i < mr; i++) { // entering the value of rows in array in Horizontal std::cin >> ac[i]; - } + } + // Change the position of Array so that new arrays entery will be done ar[r] = ac; - } + } // this for loop is use for display result of querry // *** @@ -81,5 +82,5 @@ int main() q1 = q1 - 1; // use this to find desire position of element in desire array std::cout <<"The element is "<< ar[r1][q1] <