1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice


Discussion in 'C' started by rbroller815, Apr 2, 2007.

  1. rbroller815

    rbroller815 New Member

    how do i creat a function to prompt a user to enter a value A. check it to b zero and if it is then return an error and reaske to enter. if it isnt zero then return it. how do i write the loop
  2. shabbir

    shabbir Administrator Staff Member

    Please provide some appropriate title to your threads so that people at least like to see the thread even if they have some or no idea. Probably your Help like thread will not interest many.

    I would suggest you go through [thread=168]Before you make a query[/thread] thread.
  3. DaWei

    DaWei New Member

    While you're learning how to post a question, you can also be learning how to design.

    Consider your problem and write in your native language the basic steps that you would need to follow to solve the problem. You'll find that you have named a few of them in your question. Formalize that a bit, then consider your langage of choice and look around in it for the types of operations that will perform those basic steps. Put them together.

    Come to the forums for help when it doesn't work. Provide plenty of information on how it's failing to meet your expectations. Tell precisely the error messages you receive. Show the snippets of code that are producing those errors. Show additional code or information that pertains to those areas. Use a debugger or output statements to gather additional information.

    Don't say, "it doesn't work." That doesn't help at all. Put a meaningful subject to your questions. "Help" is not a good search term for either people looking for a solution, or looking for a problem to help with.

Share This Page