Thread: Little problem with array

  1. #16
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Eizi View Post
    sorry for the late reply

    ok thank you for the help

    I didn't understand how I should exactly edit my code to fix the errors...

    Anyway, thank you for your help
    Lesson 5: Switch Case
    Lesson 8: Arrays

    You may want to go ahead and read through the rest of the tutorials as well, assuming this is the "tortoise and hair race" homework assignment we have seen here before.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  2. #17
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by laserlight View Post
    If you don't want feedback on your code, don't post code. At the moment, looking at your sample code, you clearly need to get more sleep
    Lase, in all due respect... that was HIS code, I just fixed it in a way that I felt showed the necessary changes most clearly.

    It would work... there was no problem with it, except you seem to think it's "pick on Tater day"....

  3. #18
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by CommonTater View Post
    It would work... there was no problem with it, except you seem to think it's "pick on Tater day"....
    Well, now that is no fun. We should generalize that to "pick on Canadians day".....
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  4. #19
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by CommonTater
    Lase, in all due respect... that was HIS code, I just fixed it in a way that I felt showed the necessary changes most clearly.
    Quote Originally Posted by CommonTater
    except you seem to think it's "pick on Tater day"....
    My posts #6 and #9 were intended to guide Eizi to arrive at a solution. Your post #11 ignored my efforts with a direct example that I felt was premature. Instead of complaining that you seemed to think it is "ignore laserlight day", I chose to note that your example had flaws, and then posted an example that I consider to be better.

    Quote Originally Posted by CommonTater
    It would work... there was no problem with it,
    You missed a colon on this line:
    Code:
    case 3
    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. #20
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by laserlight View Post
    You missed a colon on this line:
    Had you simply said that instead of trying to make yourself look smarter by making me look stupid, I would have thanked you...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem initializing a double array for large array
    By gkkmath in forum C Programming
    Replies: 4
    Last Post: 08-25-2010, 08:26 PM
  2. Problem converting from char array to int array.
    By TheUmer in forum C Programming
    Replies: 11
    Last Post: 03-26-2010, 11:48 AM
  3. problem with array i think
    By taurus in forum C Programming
    Replies: 5
    Last Post: 09-21-2009, 02:44 AM
  4. array problem.
    By pessi in forum C Programming
    Replies: 6
    Last Post: 08-21-2007, 07:00 AM
  5. simple array of char array problem
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 09-10-2006, 12:04 PM