Search:

Type: Posts; User: pillaw

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,558

    Your logic just popped into my head. I think...

    Your logic just popped into my head. I think using your code "abs( tempRow - firEle )" should work. The lowest value is the winner right?
  2. Replies
    5
    Views
    2,558

    Sorry DRK for not being more specific. When I'm...

    Sorry DRK for not being more specific. When I'm talking about row 1 or 2, I am referring to it as it's index. So it would start at 0.

    The logic I am having trouble figuring out, is checking...
  3. Replies
    5
    Views
    2,558

    Finding the closest number to another number

    Try not to make too much fun of me for my logic, but I'm having trouble with this. I am trying to make it so the program takes a 1 dimensional array and a 2 dimensional array, and checks to see what...
  4. Replies
    4
    Views
    1,751

    Hello Hodor, In the code above the minimum is...

    Hello Hodor,

    In the code above the minimum is not initialized, which I know is not the right thing to do. Previously, I have tried to initialize it to 10, but that still did not work. And I do...
  5. Replies
    4
    Views
    1,751

    Finding minimum in two dimensional arrays

    Hello,

    I am having a little trouble finding the minimum value in my two dimensional array. I feel like my code is right, but it could be returning the wrong value. Below is my code. Sorry if I...
  6. Replies
    7
    Views
    1,411

    Hey, So I tried to implement what you advised....

    Hey,

    So I tried to implement what you advised. I think I'm getting close, but still not getting the answer I want. Here is the output I am getting. I placed a printf in my code so I can see...
  7. Replies
    7
    Views
    1,411

    Hey whiteflags, Thank you for replying, and...

    Hey whiteflags,

    Thank you for replying, and answering my question. I was wondering, would your snip-it of code only work if the array was sorted from least to greatest? I've read it over and...
  8. Replies
    7
    Views
    1,411

    Could you elaborate on this? I'm a beginner C...

    Could you elaborate on this? I'm a beginner C programmer, and just started using Arrays.
  9. Replies
    7
    Views
    1,411

    Finding the Mode of an Array

    Hello,

    I've been trying for over an hour to think of the logic to find the mode of an array. It's not coming to me sadly... I feel close, so can someone take a look?

    I left out code for...
  10. Replies
    4
    Views
    796

    Not sure what to title this...

    Hey,

    So the objective of this program is to have the user enter a number, however long, and then the number the user enters is sent to a function, and that function initializes how long the array...
  11. Replies
    3
    Views
    29,928

    Hello laserlight, I would like to thank you...

    Hello laserlight,

    I would like to thank you for helping me. Your method is working for me currently. I did not use the


    if (scanf("%d", &arraySize) == 1)
    But instead I just called...
  12. Replies
    3
    Views
    29,928

    Error: Invalid use of void expression

    Hello,

    I keep getting an error "Invalid use of void expression" on line 12.

    Can anyone help me out? I am not sure why I am getting this error.


    #include<stdio.h>
    #include<stdlib.h>
Results 1 to 12 of 12