This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

good code bad answer

my code is 110% correct; eg no errors and runs properly. see.

int _val;

int myfunc2(int val)
{
  _val = val;
   return _val;
};

int Bar(int val)
{
  return _val + val + 1;
};

void myfunc1(int val)
{
  _val += Bar(val);
};

etc
etc
etc

it doesnt give me the right answer sometime.

HEEEEEEEELLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP

Parents
  • "yu people got too much loose time."

    For tightening up loose time, tools are not normally on display for the unskilled to just pick up and check out with, but at http://www.mcguckin.com/ you can ask a staff member along with a wink-wink, nudge-nudge, say-no-more type of behavior and they'll get you fixed up in no time flat -- at least that's where I went the first time my time had gone a bit slack -- I think.

    I say "I think", because once time got all loose and wobbly, I have vague memories of going to the hardware store to pick up a time-tightener, tightening, then I'm back at the hardware store.

Reply
  • "yu people got too much loose time."

    For tightening up loose time, tools are not normally on display for the unskilled to just pick up and check out with, but at http://www.mcguckin.com/ you can ask a staff member along with a wink-wink, nudge-nudge, say-no-more type of behavior and they'll get you fixed up in no time flat -- at least that's where I went the first time my time had gone a bit slack -- I think.

    I say "I think", because once time got all loose and wobbly, I have vague memories of going to the hardware store to pick up a time-tightener, tightening, then I'm back at the hardware store.

Children
No data