hi i am from bangladesh and read in ruet.i want to convert two dimensional array into one dimensional array.pls help me

Recommended Answers

All 4 Replies

pls help me to convert 2 dimensional array into 1 dimensional in c++ code

pls help me to convert 2 dimensional array into 1 dimensional in c++ code

You don't need two threads for the same question. Close one of them. This is a fairly easy task, but you need to post an attempt first, even if it is incorrect. At least post some code that sets up the 2-D array and the 1-D array.

Uhh... 2 Nested loop's with 3 counters?

Read the two dimensional array elements one by one and feed them sequentially into the single dimension array, thats it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.