Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1559

Arrays and Tables (SORT and SEARCH)

$
0
0

Hi

Guessing this kind of thing has been used by many COBOL programmers.


There is a TABLE of 10-digit numbers.
User enters (ACCEPT) how many such numbers they require.

an ARRAY of 5 x 2-digit RANDOM numbers is loaded.

That ARRAY ( 10-digits ) will be added to the TABLE.


Seems easy enough, but DUPLICATES in an ARRAY need to be prevented.

I suspect (hope) there might be an algorithm that will cope
with this in one go ???


Thanks in advance.

cheers   


Viewing all articles
Browse latest Browse all 1559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>