Thread: Newbie c programmer need assistance plz...

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You changed the function definition, but failed to change its prototype to match the new function signature.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #17
    Registered User
    Join Date
    Dec 2007
    Posts
    26

    Talking Problem Solved

    OMG! DaveH, Lazerlight your gods among men! Sorry for being annoying and thanks for your help!

    Although saying that, ill be back soon with brand new questions lol.

  3. #18
    Registered User
    Join Date
    Dec 2007
    Posts
    25
    hello to everyone,

    you must change the line
    Code:
    scanf  ("%c", ans);
    with
    Code:
    scanf  ("%c", &ans);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie programmer with his first frustration
    By galactic_ronin in forum C++ Programming
    Replies: 14
    Last Post: 02-20-2008, 02:39 PM
  2. Newbie needs help plz
    By boffinson in forum C++ Programming
    Replies: 22
    Last Post: 07-29-2006, 03:25 AM
  3. im newbie to opengl, help plz
    By NecroFromHell in forum C++ Programming
    Replies: 4
    Last Post: 05-14-2006, 08:24 PM
  4. Newbie Programmer
    By Extropian in forum C++ Programming
    Replies: 3
    Last Post: 05-18-2004, 01:17 PM
  5. HI .. newbie to the board... need some help plz
    By Arwen27 in forum C Programming
    Replies: 3
    Last Post: 04-28-2002, 07:27 AM