Thread: Vector subscript out of range? (Sudoku)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    11
    Quote Originally Posted by matsp View Post
    Can you describe what it is that you are trying to tackle?

    --
    Mats

    1. The void displayboard function, "You could just put them into your vector before you show the board the first time. " I don't know what you mean by this.

    2. I'm still trying to get my program to recognise each cell location so that when the user inputs 1-9 it will be put in to that cell, but before doing that i need enter the constants ike you said earlier, however the way i'm doing it would take forever.
    Last edited by mt1; 03-03-2009 at 08:26 AM.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So, how much do you understand about manipulating vectors in general - how would you put the number 6 in cell number 7 of a vector? Now, if you know that, how would you fill in the constant part of the Sudoku puzzle?

    Also, what sort of input have you dealt with so far?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Overflow and range checking for mul/div
    By Elysia in forum C++ Programming
    Replies: 28
    Last Post: 06-06-2008, 02:09 PM
  2. Help for a sudoku Solver
    By axilleask in forum C Programming
    Replies: 3
    Last Post: 11-26-2007, 04:28 PM
  3. Srand () w/ range
    By xsbinary in forum C Programming
    Replies: 9
    Last Post: 10-21-2007, 03:24 PM
  4. Please help to check.
    By nicoleha in forum C Programming
    Replies: 16
    Last Post: 12-07-2005, 03:29 PM
  5. Sudoku - the new addiction
    By axon in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-07-2005, 11:39 PM