I would be grateful if someone could send me source code of
a program that would write elements of 2D array from a text file (or .jar)
so I could process that array inside the program.
array such as: array = {{1, 2, 3, 4, 5},
{2, 3, 4, 5, 6}} contained in text file
So I would be able to show elements of this array with loop for.
In advance, thank you.
Re: functional programming ... But if you're going to tromp over the original array straightaway... Second-guessing such optimizations and hard-coding them in your source code can make the code more difficult to reason about and deal with in general, because it can put all of the properties I listed at risk. ...Mutation can be encapsulated locally in a controlled way that doesn't lead to problems, for example -- however, 'every' above is not encapsulated in that way. ... (comp.lang.scheme)
Re: Learn to Program, by Chris Pine ... Maybe you should include the full source code.... The error message says that the right side of an addition is nil.... What I also think is strange is that "world" seems to be a two dimensional array when you first mention it, but later on you pass it to continent size along with two parameters. ... Even though you wouldn't need the braces as it all of the conditionals need to be true for the whole expression to become true. ... (comp.lang.ruby)
Re: how to write elements of array from a text file? ... > I would be grateful if someone could send me source code of ... > a program that would write elements of 2D array from a text ... There are many tutorials on stream usage... (comp.lang.java.help)
Re: OT: radixsort ... > void radixsort(unsigned int *array, ... but it is quite possibly the source code for a function ... that performs a radix sort on an array of unsigned integers. ... If your question is about what a radix sort is and how it is used, ... (comp.lang.c)
Re: Hexadecimal index array ... > I am handling an array with a hexadecimal index for the first time.... that might make sense if one saw the rest of the source code.... (comp.lang.c)