doasku

Sudoku solver
git clone git://git.dimitrijedobrota.com/doasku.git
Log | Files | Refs

main.cpp (291B)


      1 #include <iostream>
      2 
      3 #include "grid.hpp"
      4 
      5 int main(const int argc, const char *argv[]) {
      6     for (int i = 1; i < argc; i++) {
      7         Grid g(argv[i]);
      8 
      9         g.print();
     10         std::cout << (g.solve() ? "solved" : "unable to solve") << std::endl;
     11         g.print();
     12     }
     13 
     14     return 0;
     15 }