Thread: Standard Template Library

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    82

    Standard Template Library

    Hey can you guys direct me to a good STL tutorial website? Google search sucks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You mean like this first hit from google just searching "stl"
    http://www.sgi.com/tech/stl/

    "good STL tutorial website?"
    No idea - you don't list the ones you consider to be bad, so how can we list ones which you might think are "good".
    As they say, one man's fish is another man's poisson.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The standard C Library API
    By boyfarrell in forum C Programming
    Replies: 4
    Last Post: 10-11-2008, 02:05 PM
  2. Difference between GLIBC and Standard C library
    By RoshanX in forum Tech Board
    Replies: 5
    Last Post: 04-15-2007, 02:22 AM
  3. error: template with C linkage
    By michaels-r in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2006, 08:11 AM
  4. Replies: 3
    Last Post: 09-04-2002, 09:01 PM
  5. C Standard Library
    By JoshG in forum C Programming
    Replies: 2
    Last Post: 07-17-2002, 09:09 AM