Any computer programmers around? Question.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wedouglas
    So Fucking Banned
    • Aug 2004
    • 5921

    #1

    Any computer programmers around? Question.

    I have this

    int fcn(int blahg, char blahf, int blahd){
    int collisions = 15;
    return collisions;
    }

    int main(){

    int stuff;
    stuff = fcn(blah , hah, lol);

    cout << stuff;

    }


    Shouldn't stuff = 15 and it would print out 15...

    The functions work perfectly, but the value for stuff is some stupid number like 13134.

    Any reason that collisions wouldnt return correctly?
Working...