x

lcx
Last edited on
"thissolution" does not appear in the code you pasted.

If by "translation" you mean "explanation", here's one:

The readFile() function is a mixture of C and C++ and just reads the input file one line at a time. The first line contains the matrix size (it is expected to be square). After that, it just reads all numbers into the grid matrix. It uses strtok() to find each individual number, and it uses the non-standard function atoi() to convert the number representation into an actual int value. After that it just reads the solution as an array of strings.

If you really meant translation, then you must specify the target language.
Topic archived. No new replies allowed.