Thread: Will not compile... help!!

  1. #1
    Registered User
    Join Date
    Mar 2013
    Location
    Dunwoody, Georgia, United States
    Posts
    2

    Will not compile... help!!

    My girlfriend is having some trouble getting her code to compile. She has come to the point of giving up. Would anyone be kind enough to explain or point out the problem? It would be much appreciated!! Thank you.

    [See attached.]

    In her words: "Its supposed to do matrix multiplication and other matrix calculations".
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    Will not compile... help!!
    Please post the complete compiler errors exactly as they appear in your development environment.

    One thing I notice is the lack of include guards in your include file. Also you are using the same variable name for a parameter that you are using for a member variable. This can cause problems, you should never use the same variable name for a parameter and a member variable.

    Jim

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > My girlfriend is having some trouble getting her code to compile. She has come to the point of giving up.
    5 1/2 steps to get others to doing your homework

    Your 'girlfriend' should actually sign up on the board and ask the question directly themselves.
    It's hard enough explaining things directly sometimes, without some middle-man corrupting the message traffic in both directions.
    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.

  4. #4
    Registered User
    Join Date
    Mar 2013
    Location
    Dunwoody, Georgia, United States
    Posts
    2
    Quote Originally Posted by Salem View Post
    > My girlfriend is having some trouble getting her code to compile. She has come to the point of giving up.
    5 1/2 steps to get others to doing your homework

    Your 'girlfriend' should actually sign up on the board and ask the question directly themselves.
    It's hard enough explaining things directly sometimes, without some middle-man corrupting the message traffic in both directions.
    Great, thanks! Now... how about you give me your lunch money?

    No? Oh, I'm sorry... your comment made me feel like I am in middle school again. If you are in middle school, someone needs to shove you in a locker.

    Anyway, my girlfriend Michelle was with me last night when I started this discussion. She just needed a little help fixing things. I suggested this forum but she insisted no one would help so I tried proving her wrong. Turns out she is right. The project was due this morning so its too late now.

    And FYI: Helping is not the same as doing. You wouldn't have had to write one line of code. All we needed was someone to point her in the right direction.

    @jimblumberg: Thank you so much for your help. My earlier comment was not meant for you at all. It seems this board is good for something.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Splendid - turned out just the way it was supposed to.

    Understand that we get all sorts of sob stories full of all sorts of useless information designed to try and elicit some kind of sympathy into getting preferential treatment.

    Yours looked exactly like that kind of post.

    In future, the actual person with the question (whether it's you, your actual gf, or you pretending you have a gf) should post the actual question.
    How To Ask Questions The Smart Way
    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.

  6. #6
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    your comment made me feel like I am in middle school again.
    If you are in middle school, someone needs to shove you in a locker.

    ...

  7. #7
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    I suggested this forum but she insisted no one would help so I tried proving her wrong. Turns out she is right
    No, not really. When you post "your" code code and just tell us "it's broke" doesn't tell us anything, we have to guess. When asking questions you need to ask specific questions and provide enough information for us to quickly locate the problems. For example when you get compiler errors post the complete error messages exactly as they appear in your development environment. And most importantly tell us what you've tried to do to resolve the issues.

    The project was due this morning so its too late now.
    I suggest next time allowing more time to accomplish the objectives, and don't wait till zero hour to ask for help. This forum is usually quite good about providing help, but we do expect "you" to show that "you're" actually trying to accomplish the objective.

    And please note I did compile "your" code and it compiled without problems for me. But I didn't use multiple files so the include guards were probably the biggest problem as far as compiling was concerned.

    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can't compile
    By campermama in forum C++ Programming
    Replies: 9
    Last Post: 06-23-2004, 08:20 PM
  2. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM
  3. Replies: 3
    Last Post: 03-07-2003, 09:06 PM
  4. Won't compile, can YOU compile it on your compiler?
    By incognito in forum C++ Programming
    Replies: 12
    Last Post: 03-10-2002, 12:00 PM