Hi everyone
I'm programming in qt, with qt 5 and i have a dude. I have a QList<double> list; and this list list contain much values.
Example:
Qt Code:
(7.41043, 7.6002, 7.41904, 7.41041, 7.59567, 7.80702, 7.9873, 7.80707, 7.78752, 7.967, 7.78653, 7.96694, 7.40598, 7.40597, 7.5947, 7.76546, 7.94506, 7.82004, 8.0137, 7.99947)To copy to clipboard, switch view to plain text mode
How can search in the list the value most close to 0 and return this? and know the position in the list?
Bookmarks