Thread: log(2) function HELP

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    std10093: would you mind indenting your code properly? I can understand if you just copy and paste patta's code, but when you are going to make your own examples, format them. My eyes glazed over looking at the code you posted, so I actually did miss the fact that you are also recommending the use of functions that do one thing and do it well.
    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
    Sep 2012
    Location
    Norway
    Posts
    5
    Thank u guys so much, definitely a great first impression to the community! Ur answers was very helpful

  3. #18
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Quote Originally Posted by laserlight View Post
    std10093: would you mind indenting your code properly? I can understand if you just copy and paste patta's code, but when you are going to make your own examples, format them. My eyes glazed over looking at the code you posted, so I actually did miss the fact that you are also recommending the use of functions that do one thing and do it well.
    I thought the were automatically indenting!Now i see they are not,so next time i am going to have it in mind (thanks for the input,because inputs like this makes be answer in a more efficient way )

    And of course oogabooga there is absolutely no problem at all

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 09-07-2012, 04:35 AM
  2. Replies: 13
    Last Post: 03-20-2012, 08:29 AM
  3. Print function: sending a function.. through a function?
    By scarlet00014 in forum C Programming
    Replies: 3
    Last Post: 11-05-2008, 05:03 PM
  4. Replies: 14
    Last Post: 03-02-2008, 01:27 PM
  5. Replies: 9
    Last Post: 01-02-2007, 04:22 PM