How to find the index of a randomly selected element of an array in C++

Pages: 12
@seeplus, thank you. Do i need to have C++17 enabled to run it?

I run it using the following compiler, but got errors. I also tried by clicking "Edit & Run" next to your reply but got errors.

g++ (Ubuntu 8.3.0-6ubuntu1) 8.3.0


To run it in ubuntu (version 19.04) with above compiler version, what changes I need to make? Or would you suggest me which compiler i have to install in ubuntu to run it successfully?


Thanks again.
@lastchance, I got it now. Thanks
Do i need to have C++17 enabled to run it?


Possibly. I've now forgotten what was C++11/14 and what was C++17 - we're now onto C++20!
Thank you. I could resolve it. I just posted another topic, where i need to find out the largest element of a row of a matrix.

http://www.cplusplus.com/forum/lounge/274915/

Would anyone please help with the code?

Thank you!
@Feit - done!
Topic archived. No new replies allowed.
Pages: 12