Thread: ISBN Code Checking...!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You've corrected a few things in the program, but the logic and some other things, are still not OK.

    Try the example input from your first post (or any example input you know the answer to), and SHOW the value you get when it's done. NOT just the "no number" answer, but the ACTUAL value of the ISBN numbers that the program is trying.

    Add some printf()'s followed by getchar()'s, to help you see what your program is actually doing.

    Or run the program in your debugger, step by step, and watch the values, to see where they are going off the rails.

    First goal imo, is to get an example of a good ISBN number, to be marked as valid, by the program. Save the ? logic, until you have the easy stuff working OK.
    Last edited by Adak; 08-25-2012 at 12:28 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. checking for a code in a string
    By shin_ono in forum C Programming
    Replies: 13
    Last Post: 10-01-2008, 02:04 AM
  2. Checking lines of code
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-10-2008, 02:05 AM
  3. Looking for Code Analysis / Checking Tool
    By nvoigt in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-01-2007, 03:34 AM
  4. Please restore the code tag checking script
    By Salem in forum A Brief History of Cprogramming.com
    Replies: 76
    Last Post: 09-09-2006, 12:35 AM
  5. file existance checking /w code
    By Shadow in forum C Programming
    Replies: 2
    Last Post: 02-08-2002, 02:40 PM

Tags for this Thread