Thread: probs with coding

  1. #31
    Registered User Ivory348's Avatar
    Join Date
    Oct 2019
    Posts
    75
    I think C Board could profit by formulating a few rules of conduct.
    Last edited by Ivory348; 01-30-2020 at 09:04 PM.

  2. #32
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Ivory348 View Post
    I think C Board could profit by formulating a few rules of conduct.
    We have one, though it's embedded in a long thread here
    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. #33
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    Personally I'd read the whole line into a string and then parse it. Clearly it can be done character by character and I guess either approach would work. Interestingly, given the string

    Code:
    This [is ] a [[string]]
    My implementation outputs:
    Code:
    is string
    But Structure's implementation outputs:
    Code:
    is 
    [string
    Which is correct? Maybe neither is correct because the problem description seems to lack the details to know

  4. #34
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Stick a fork in it, it's done.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. std::map probs
    By BeBu in forum C++ Programming
    Replies: 6
    Last Post: 08-06-2007, 03:41 PM
  2. coding mastermind in C, only got 2 probs..
    By lepricaun in forum C Programming
    Replies: 17
    Last Post: 07-24-2004, 09:15 AM
  3. IDE & DX7+ Probs
    By MicroFiend in forum Game Programming
    Replies: 0
    Last Post: 03-04-2004, 10:54 AM
  4. Probs
    By Empress in forum C++ Programming
    Replies: 4
    Last Post: 10-28-2003, 08:37 PM
  5. Several Probs
    By gamer4life687 in forum C++ Programming
    Replies: 4
    Last Post: 12-25-2002, 07:40 PM

Tags for this Thread