Thread: Fucntions (Inisualizing)

  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    2

    Fucntions (Inisualizing)

    ok here is the question: Write a function that will insualize a double data array element to 0.0 ?
    Last edited by Jamie2013; 04-25-2013 at 09:44 PM. Reason: Question not correctly posted

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    How would you initialise the array without writing a function?
    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

  3. #3
    Registered User
    Join Date
    Apr 2013
    Posts
    2
    Read the question again.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Looks essentially the same to me after your edit, so my question to you still applies.
    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

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Read laserlight's question again. If you can answer hers, you will have the answer to your own.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loop and Fucntions
    By ankiit in forum C Programming
    Replies: 4
    Last Post: 01-26-2012, 11:11 PM
  2. strings and fucntions
    By solankill in forum C++ Programming
    Replies: 14
    Last Post: 12-09-2011, 06:10 PM
  3. Simple question on creating fucntions
    By live4soccer7 in forum C Programming
    Replies: 22
    Last Post: 02-08-2009, 07:55 PM
  4. declair fucntions before main()?
    By Munkey01 in forum C++ Programming
    Replies: 22
    Last Post: 01-04-2003, 03:38 PM