Why is the compiler complaining about those lines instead of the others?
Type: Posts; User: davidjg
Why is the compiler complaining about those lines instead of the others?
Hello all,
I am getting incompatible types in assignment on lines 144, 147, 153. Can anyone tell me what the problem is? Please be kind. I'm new to C programming. Thank you.
hw2.c: In...
Hello all,
I need to get reacquainted with Sun Solaris and Oracle for my new job. Does anybody have any book recommendations?
Thank you for all of the help. I was able to resolve the issue and you were correct. The logic and the math was wrong.
No. I'm actually entering 2 for the gallons.
./a.out
Welcome to Dave's paint production. How many gallons would you like to order?
The unit price is $10.31 a gallon.
2
You have chosen to...
This is my output. Can anyone tell me why and help me out as to what I'm doing wrong?
0.00Your total is: $0.00
0.00
0.00 Dollars
0.000000
0.00
0.00
0.000.00
Hello all:
I am trying to make my change maker calculate the correct amount of change given and its not calculating at all. My program is compiling and running but I cannot seem to find the issue...
sprintf(dest, "%s%ced", src + 1, *src);
OMG!!! That did it!!! THANK YOU!!!!!
It was worth a try for sure but it's doubling the first character when I add:
strncat( dest, src, 1)
Hello how are you
word count:0 elloedHH
word count:1 owedhh
word count:2 reedaa
word...
Hello all,
I am new to C programming and I am currently working an encoder program that encodes text unintelligibly. I need help writing my recursive function to provide the desired output...
Thanks to all who helped me on this project.:)
Please help......:confused:!!!
Ok....I modified the prototype....but now getting compiler errors again.
currency1.c: In function `main':
currency1.c:39: too few arguments to function `convert'
currency1.c:40: warning: passing...
Ok.......it's still giving me no value in the output. Any ideas on what to do here?
convert(money); /* function call */
convert(xChange); /* function call */
Please enter the number of...
I'm just a C newb. The way that moeny was passed is through a function call "convert(money);" Can you provide an example on how I would pass the values of the array into the function?:confused: Help...
@tabstop.....I totally agree but how would I do that?
Sorry for editing so quickly and thanks for your reply. I got it compiling but I can't seem to get the function call to read the values from the array in main. Any ideas on what to do here?:confused:
I got this compiling but I'm getting no values in my output. Can anyone help out and tell me what I'm doing wrong.
#include <stdio.h>
#include <time.h>
#define SIZE 5
/* function...
Thanks guys. That fixed it.
What am I doing wrong? I'm getting gcc compiler error on line 29.
card.c: In function `main':
card.c:29: warning: passing arg 1 of `deal' from incompatible pointer type
/* Figure 7.24 from...
Maybe so. I am new to C programming. Can I get the exact syntax on how to write the histogram code?
I did. Please see the above in red.
I believe it has to be written as a function prototype and the array needs to be initialized in the loop. It should be something like:
void PrintHistogram (int grades[] [ EXAMSCORES ] )
...
The code you have provided is returning parse errors.
void median( int grades[][ EXAMSCORES ] )
{ /* begin function median */
int i; /* student counter */
int j; /* exam counter */...
My question is: How do I write the print histogram function and where would I write this into the code?