Search:

Type: Posts; User: fcommisso

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    3,205

    DOOOHHHH!!!!!! As homer would say! indeed, i...

    DOOOHHHH!!!!!! As homer would say!

    indeed, i had forgotten to #include <iterator>
  2. Replies
    2
    Views
    1,080

    call function

    this funciton initialized as:



    void initCards(int *playerHand[], int *dealerHand[], int numOfCards)


    is it wrong if I call it this way?
  3. Replies
    1
    Views
    871

    nvm, I see the problem now I posted it.... sorry...

    nvm, I see the problem now I posted it.... sorry guys.
  4. Replies
    1
    Views
    871

    Bus error from hell!

    OK take at look at this code. I've been starring for hours trying to decipher where I went wrong.




    void initHandsToZero(int *playerHand[], int *dealerHand[]) {
    int i;
    for (i=0; i <...
  5. Thread: rand

    by fcommisso
    Replies
    9
    Views
    1,382

    ok, so then my next question is... How can I...

    ok, so then my next question is...
    How can I have it spit out a random number from 1 to 52? both included...
  6. Thread: rand

    by fcommisso
    Replies
    9
    Views
    1,382

    rand

    will this code:

    int randInt = rand() % 52;

    ever hit the number 52??
  7. Replies
    10
    Views
    2,075

    ok. that ws horrible code. ignore that. what...

    ok. that ws horrible code. ignore that.

    what will this do?




    void fflushstdin( void )
    {
    int c;
  8. Replies
    10
    Views
    2,075

    ok.. sorry, but I still need more information....

    ok.. sorry, but I still need more information. How can I implement it to my code?





    void getBet(int* currentBet) {

    int bet = 0;
    for(printf("Enter Bet:\n"); 1; printSeparator()) {
  9. Replies
    10
    Views
    2,075

    Oh great links quzah! Thank you. I really didn't...

    Oh great links quzah! Thank you. I really didn't get how to do such a thing... shame that it isn't part of a library, uh?
  10. Replies
    10
    Views
    2,075

    nope.... unless i'm using it at the wrong time???...

    nope.... unless i'm using it at the wrong time???



    void getBet(int* currentBet) {

    int bet = 0;
    for(printf("Enter Bet:\n"); 1; printSeparator()) {
    scanf("%d", &bet);
    fflush(stdin);
  11. Replies
    10
    Views
    2,075

    i tried fflush(stdin); but no luck

    i tried fflush(stdin);
    but no luck
  12. Replies
    10
    Views
    2,075

    clearBuffer()

    so I need to write a function clearBuffer() to clear the buffer after scanf...
    anyone can give me any help??
    I have no clue how to do this...i just know that i get a 'bus error' otherwise..



    ...
  13. Replies
    10
    Views
    1,993

    initializing array - quick question

    Hey, will this guarantee all the elements in my array will be declared zero? or should I got for a for loop instead?




    int array[size] = {0};
  14. Replies
    6
    Views
    9,814

    How would I do that? I need to read from a file...

    How would I do that?
    I need to read from a file and depending on some number calculation I can then declare the array's size.

    I know static declaration is wrong...i wouldn't be able to use it in...
  15. Replies
    8
    Views
    2,826

    Thanks guys. And yes, I do know that decompiling...

    Thanks guys. And yes, I do know that decompiling my own executables isn't illegal, but if I hadn't written something of the like, I was sure to get someone rant to me about the illegality of reverse...
  16. Replies
    6
    Views
    9,814

    not constant satic array declaration

    I know the title sounds more like an oxymoron than an actual problem, but I need help declaring an array that needs to be used in other functions inside a function that's first called in main.

    So...
  17. Replies
    8
    Views
    2,826

    Reverse Engineering

    Hey, I'm looking into my old codes and I have what I remember to be my best programming project I coded in C for my C programming class last semester. The fact of the matter is that I seem to have...
  18. Replies
    1
    Views
    1,303

    here you go:

    here you go:
  19. Replies
    4
    Views
    1,692

    still doesn't fix it. maybe i need to declare a...

    still doesn't fix it. maybe i need to declare a pointer that points to first and use that for the comparisons... ?

    maybe something like



    const struct Entry *p1

    //. ... much codingz
  20. Replies
    4
    Views
    1,692

    find entry in linked list

    I'm working on a function that finds entries in an address book given the linked list (first), the fieldId (i.e. a number form 1-7, such that 1 = First..name, 2 = Last..name, 3 = Street..address, 4 =...
  21. Replies
    4
    Views
    1,119

    hehe, that hint was too easy. I figured it out...

    hehe, that hint was too easy. I figured it out before you posted it, too! Thanks a lot.
  22. Replies
    4
    Views
    1,119

    Ok, thanks. I still quite don't understand what...

    Ok, thanks. I still quite don't understand what you are trying to tell me. Any other hint? Bare with me that I am not urging you to post a solution for me, I'd like to know what is needed to be done.
  23. Replies
    4
    Views
    1,119

    why isn't it working?

    ok so I have set up a linked list: this is it:

    in_p7.h



    /* Structure definition */
    struct Entry
    {
    char lastName[26], firstName[26], streetAddress[101];
  24. Thread: source code

    by fcommisso
    Replies
    4
    Views
    1,215

    Thanks guys, great suggestions all. I'm...

    Thanks guys, great suggestions all.
    I'm interested in everything, really. It seems you've given me a broad enough list to cover it all.

    Happy thanksgiving !
  25. Thread: source code

    by fcommisso
    Replies
    4
    Views
    1,215

    source code

    Hey, can anyone give me some good sites or links where i can look at source codes (open source...nothing illegal) just so i can learn, i seem to learn a lot more by example and following through...
Results 1 to 25 of 46
Page 1 of 2 1 2