Search:

Type: Posts; User: Theta Zero

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    3,947

    Turns out it was a pointer issue (which we...

    Turns out it was a pointer issue (which we haven't covered in class yet). I threw in an asterisk and it all worked out. As best as I can tell, it had to do with character array names being...
  2. Replies
    15
    Views
    3,947

    larger excerpt of my current code below: ...

    larger excerpt of my current code below:


    printf("Please input the value of N: ");
    scanf("%d", &n);
    while(n != 0)// Entry of 0 will quit the program
    {
    for (i = 0; i < sizeOfLychrelList;...
  3. Replies
    15
    Views
    3,947

    I apologize, my IDE and copy/paste like to fight...

    I apologize, my IDE and copy/paste like to fight with eachother.

    n is an input number rather than a character, obtained with

    scanf("%d", &n);
    lychrels[] is an array of long longs.
  4. Replies
    15
    Views
    3,947

    Ok, I can't figure this out for the life of me. ...

    Ok, I can't figure this out for the life of me.



    for (i = 0; i < sizeOfLychrelList; i++)
    {
    if (lychrels[i] == n)
    {
    isLychrel = true;
    }
  5. Replies
    15
    Views
    3,947

    That &n fixed 90% of my problems. I also fixed...

    That &n fixed 90% of my problems. I also fixed the rest of the issues for good programming form, although admittedly my for loops were due to poor note-taking. All that's left is to sort out my...
  6. Replies
    15
    Views
    3,947

    Debugging manually lead me to question this: ...

    Debugging manually lead me to question this:


    printf("Please input the value of N: ");
    scanf("%d", n);
    printf(n);


    Commenting out all the rest of the code (except functions) after causes it...
  7. Replies
    15
    Views
    3,947

    hate to do it, but bump over the wall of spam.

    hate to do it, but bump over the wall of spam.
  8. Replies
    15
    Views
    3,947

    Thought it might be a problem with datatype size...

    Thought it might be a problem with datatype size (are ints in C really THAT much smaller than in Java? Wow.) so I changed every reference to numbers used for calculation, return types, and basically...
  9. Replies
    15
    Views
    3,947

    New to C, need debugging help

    Introduction:
    Before I get started, this is an advance warning that I've never coded in C before. I've taken 2 years of java-related programming, but C is a brand new animal for me. This is for a...
Results 1 to 9 of 9