thanks a billion.
Type: Posts; User: saszew
thanks a billion.
to change arr [i-1] to a pointer: *(arr +i -1)
???
Or do I have it wrong/
Thanks!
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>
Alright, I got it to work, but now it is always finding the value at index five....
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...
I found that. now, I am having other problems! joy...
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:...
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. ...
thanks,
i am new to programming and just blanked out for a minute there...
how do you use call sqrt function from the math library? i can't remember!
thanks,
sarah
yeah, i had to get the wrong answer out of my head to figure out some steps to the right answer!
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.
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...
Thanks for your comments! My code works now, everything is displayed correctly. Whoo!
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...