Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Program have probs

  1. #11
    Join Date
    May 2003
    Posts
    229
    Rep Power
    0

    Default

    Quote Originally Posted by icymint3 View Post

    this is not true though, he can actually delare the function in another function... it must come before the function (being declared) is defined, and it will scope to that function - meaning it will only be callable from that function it was declared inside of.

    the problem is... that was not his intent!
    I was all ready to explain to you how wrong you were until it occurred to me to check before I run off mi mout. It turns out you are correct. Although since I just read it up, I can also add that all of the declarations (including function declarations) inside a compound statement (i.e. inside the curly braces) must occur before any other statements.

  2. #12
    Join Date
    Dec 2002
    Posts
    500
    Rep Power
    0

    Default

    theres usually an i think somewhere in a message when i'm not sure of what i say... i think.
    Cultured in Aggression and Koding like a Warrior!!
    “Common sense is instinct. Enough of it is genius.” - George Bernard Shaw.
    "The significant problems we face cannot be solved by the same level of thinking that created them." - Albert Einstein

  3. #13
    Join Date
    Oct 2005
    Posts
    745
    Rep Power
    0

    Default

    Quote Originally Posted by icymint3 View Post
    that should work but it wont correct this part of it
    Icy, you do know what that batch script will do right?....But I'm sure if he uses it he can always regoogle™ the code if he didn't back it up.
    3.14159265358979323846264338327950288
    4197169399375105820974944592307816406
    28620899862803482534211706798 pi 101

  4. #14
    Join Date
    Dec 2002
    Posts
    500
    Rep Power
    0

    Default

    Quote Originally Posted by recursion View Post
    Icy, you do know what that batch script will do right?....But I'm sure if he uses it he can always regoogle™ the code if he didn't back it up.
    yeah, it would replace all lines in his source file with "recursion"
    ... the thing is he would have no comment block stating who wrote the code, so i was sayin he gonna have to edit the file ... which by now would have been fixed ... and enter the comment.

    c, i was just tryin to make sure that artifacts of his research remain in the project, wouldnt want to undo all that effort.
    Last edited by icymint3; Mar 14, 2007 at 02:58 PM.
    Cultured in Aggression and Koding like a Warrior!!
    “Common sense is instinct. Enough of it is genius.” - George Bernard Shaw.
    "The significant problems we face cannot be solved by the same level of thinking that created them." - Albert Einstein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •