Search:

Type: Posts; User: davidjg

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,771

    Why is the compiler complaining about those lines...

    Why is the compiler complaining about those lines instead of the others?
  2. Replies
    3
    Views
    2,771

    incompatible types in assignment

    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...
  3. Replies
    0
    Views
    1,752

    Book recommendations

    Hello all,

    I need to get reacquainted with Sun Solaris and Oracle for my new job. Does anybody have any book recommendations?
  4. Replies
    14
    Views
    2,931

    Thank you for all of the help. I was able to...

    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.
  5. Replies
    14
    Views
    2,931

    No. I'm actually entering 2 for the gallons. ...

    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...
  6. Replies
    14
    Views
    2,931

    This is my output. Can anyone tell me why and...

    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
  7. Replies
    14
    Views
    2,931

    Hello all: I am trying to make my change maker...

    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...
  8. Replies
    4
    Views
    2,602

    sprintf(dest, "%s%ced", src + 1, *src); OMG!!!...

    sprintf(dest, "%s%ced", src + 1, *src);

    OMG!!! That did it!!! THANK YOU!!!!!
  9. Replies
    4
    Views
    2,602

    It was worth a try for sure but it's doubling the...

    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...
  10. Replies
    4
    Views
    2,602

    Recursive function and segmentation fault

    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...
  11. Replies
    14
    Views
    2,156

    Thanks to all who helped me on this project.:)

    Thanks to all who helped me on this project.:)
  12. Replies
    14
    Views
    2,156

    Please help......:confused:!!!

    Please help......:confused:!!!
  13. Replies
    14
    Views
    2,156

    Ok....I modified the prototype....but now getting...

    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...
  14. Replies
    14
    Views
    2,156

    Ok.......it's still giving me no value in the...

    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...
  15. Replies
    14
    Views
    2,156

    I'm just a C newb. The way that moeny was passed...

    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...
  16. Replies
    14
    Views
    2,156

    @tabstop.....I totally agree but how would I do...

    @tabstop.....I totally agree but how would I do that?
  17. Replies
    14
    Views
    2,156

    Sorry for editing so quickly and thanks for your...

    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:
  18. Replies
    14
    Views
    2,156

    function calls and pointers

    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...
  19. Replies
    3
    Views
    1,924

    Thanks guys. That fixed it.

    Thanks guys. That fixed it.
  20. Replies
    3
    Views
    1,924

    incompatible pointer type

    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...
  21. Replies
    14
    Views
    7,467

    Maybe so. I am new to C programming. Can I get...

    Maybe so. I am new to C programming. Can I get the exact syntax on how to write the histogram code?
  22. Replies
    14
    Views
    7,467

    I did. Please see the above in red.

    I did. Please see the above in red.
  23. Replies
    14
    Views
    7,467

    I believe it has to be written as a function...

    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 ] )
    ...
  24. Replies
    14
    Views
    7,467

    The code you have provided is returning parse...

    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 */...
  25. Replies
    14
    Views
    7,467

    My question is: How do I write the print...

    My question is: How do I write the print histogram function and where would I write this into the code?
Results 1 to 25 of 45
Page 1 of 2 1 2