Search:

Type: Posts; User: saszew

Search: Search took 0.01 seconds.

  1. Thread: pointers

    by saszew
    Replies
    6
    Views
    1,749

    thanks!

    thanks a billion.
  2. Thread: pointers

    by saszew
    Replies
    6
    Views
    1,749

    arr [i-1]

    to change arr [i-1] to a pointer: *(arr +i -1)
    ???

    Or do I have it wrong/
    Thanks!
  3. Thread: pointers

    by saszew
    Replies
    6
    Views
    1,749

    pointers

    Hello,

    I have some code here, would you mind checking to see if I changed all the parts I could to pointers?

    Thanks,
    Sarah


    #include <stdio.h>
    #include <string.h>
  4. Replies
    2
    Views
    2,158

    Update:

    Alright, I got it to work, but now it is always finding the value at index five....
  5. Replies
    2
    Views
    2,158

    binary search program

    Here are the errors:
    test3.c: In function ‘main’:
    test3.c:40: warning: passing argument 1 of ‘binary_srch’ from incompatible pointer type
    test3.c:42: warning: suggest parentheses around assignment...
  6. Replies
    2
    Views
    1,689

    thanks

    I found that. now, I am having other problems! joy...
  7. Replies
    2
    Views
    1,689

    Help with code, I can't seem to fix the error

    These are the errors I am getting.
    test.c:17: error: expected ‘)’ before ‘[’ token
    test.c: In function ‘main’:
    test.c:28: warning: unused variable ‘arrZ’
    test.c: At top level:
    test.c:122: error:...
  8. Thread: strings

    by saszew
    Replies
    3
    Views
    1,183

    strings

    Hello there,

    I am trying to write the algorithm for a program that will return 1 (true) if a string argument ends in the substring OH.

    I'm pretty confused, even though it seems fairly simple. ...
  9. Replies
    4
    Views
    974

    thanks!

    thanks,
    i am new to programming and just blanked out for a minute there...
  10. Replies
    4
    Views
    974

    sqrt function, easy question

    how do you use call sqrt function from the math library? i can't remember!

    thanks,
    sarah
  11. Replies
    7
    Views
    16,661

    yeah, i had to get the wrong answer out of my...

    yeah, i had to get the wrong answer out of my head to figure out some steps to the right answer!
  12. Replies
    7
    Views
    16,661

    Thanks

    Thanks for your suggestions! I think I have been staring at the screen for too long. I might just scrap what I have and start fresh tomorrow.
  13. Replies
    7
    Views
    16,661

    program to calculate the square root

    Hello,

    I am writing a program that will repeatedly calculate (loop) using the formula

    nextGuess = 0.5(lastGuess + number/lastGuess).

    I need a function using this calculation, and I need...
  14. Replies
    3
    Views
    1,592

    Thank you!

    Thanks for your comments! My code works now, everything is displayed correctly. Whoo!
  15. Replies
    3
    Views
    1,592

    Help with programming assignment

    Hello!

    I am fairly new to programming. I am trying to finish this assignment from Hanley's C Program Design for Engineers. It is due on Monday, and I am trying to get it finished up this...
Results 1 to 15 of 15