Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Bruce --
Yes, I like tables, too, to separate data from logic. And, a table approach would be perfectly appropriate in this situation. I suspect Marvin's data is in that form. He could either access the table directly with some application modification, or select into an array and use existing code.
>a) hit the size limit
You know, I hadn't thought of it, but a table-driven approach could be used to generate prime numbers, indefinitely ... <g>
Jay
>Hey, good work Jay! This is what I was doing, but your code is already refined better than mine.
>
>The only thing I might question is using an array - you might a) hit the size limit and b) want the results in a permanent table for one reason or another. I almost always choose tables for these situations, for such reasons, plus I like having all the table command available, generally they're more flexible. But that depend on needs, of course, and perhaps either one will do fine.
>
>Otherwise, very good work, and it's up to Marvin if there needs to be a STOP IF SOLUTION FOUND, or whether he wants to gather all possible solutions.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement