[HN Gopher] C++ Sudoku Solver by Singapore PM Lee Hsien Loong
       ___________________________________________________________________
        
       C++ Sudoku Solver by Singapore PM Lee Hsien Loong
        
       Author : georgehill
       Score  : 41 points
       Date   : 2023-11-04 19:07 UTC (3 hours ago)
        
 (HTM) web link (twitter.com)
 (TXT) w3m dump (twitter.com)
        
       | tralarpa wrote:
       | Looks more like old-school C to me, although the variable names
       | are a bit too long for a real C programmer :)
       | 
       | (but I don't know whether C already had the "const" keyword at
       | that time)
        
         | knome wrote:
         | It is C. Otherwise, they would have used `<cstdio>` or
         | `<iostream>` rather than `"stdio.h"`
         | 
         | However, it is written in the common parts of the languages, so
         | it will compile under either gcc as a C file or g++ as a cpp
         | file just fine without changes.
        
           | CamperBob2 wrote:
           | stdio.h works just fine in C++.
        
         | turminal wrote:
         | > (but I don't know whether C already had the "const" keyword
         | at that time)
         | 
         | It did, "const" exists since C89.
        
       | joak wrote:
       | This is a 7 years old news, cool nonetheless.
       | 
       | https://arstechnica.com/information-technology/2015/05/prime...
        
       | joak wrote:
       | Similar story, or even more impressive, since the code was
       | written in emergency and actually useful:
       | 
       | https://www.wired.com/story/how-taiwans-unlikely-digital-min...
        
       ___________________________________________________________________
       (page generated 2023-11-04 23:00 UTC)