Search:

Type: Posts; User: jimblumberg

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    113

    What do you think the values should be? Did...

    What do you think the values should be?

    Did you plug the snippet into a program and print the values?

    Are you sure that you copied the code correctly?
  2. Well I can't reproduce either of the "results",...

    Well I can't reproduce either of the "results", because the code you provided fails to compile.

    Perhaps you left off some important code, ie. header files?
  3. What operating system are you using? What...

    What operating system are you using?

    What parameters are you using with md5sum?

    What is md5sum returning?
  4. However when I do the same with binary ones there...

    However when I do the same with binary ones there is sth wrong as md5sum doesnt match.

    Could the problem be due to different line endings?

    But really you're not showing near enough content....
  5. You should really consider using std::string...

    You should really consider using std::string instead of the error prone C-strings.

    In your setName() function you should first verify that the passed C-string is small enough to fit into the name...
  6. Replies
    5
    Views
    199

    The problem is that the pointer is local to the...

    The problem is that the pointer is local to the function and will only be valid in that function.

    Instead of "returning" a pointer it would be better to pass the pointer into the function.


    ...
  7. All input should be coming from that input file....

    All input should be coming from that input file.


    That structure seems wrong. What about the first entry?
  8. Please show your input file "contacts.txt". Do...

    Please show your input file "contacts.txt".

    Do you realize that your run line ("./project1 <contacts.txt") is using input redirection? Which means that the above file should contain all your input...
  9. Replies
    2
    Views
    115

    A couple of things. First line 12 is...

    A couple of things.

    First line 12 is incorrect (look at line 16 for a hint).

    Second line 21 is invoking undefined behaviour, you're attempting to increment the same value twice without a...
  10. Double post...

    Double post. Please don't post the same question in multiple sub-forums.

    Also this is a C++ question not a C question.
  11. Also posted here...

    Also posted here.
  12. That was already suggested in the link pointed...

    That was already suggested in the link pointed out by Salem.

    By the way this topic should really be in the Windows forum, since using the Windows api is a requirement.
  13. Replies
    4
    Views
    177

    So how does "I'm really bad at it" relate to the...

    So how does "I'm really bad at it" relate to the problem at hand?

    What exactly don't you understand?
  14. Replies
    4
    Views
    177

    Do you realize that in main() x and y are single...

    Do you realize that in main() x and y are single doubles, not two arrays of double as your function expects?
  15. Replies
    1
    Views
    160

    A couple of things, first in C you shouldn't be...

    A couple of things, first in C you shouldn't be casting the return value from malloc(), second what is "s"? Third did you look up some documentation for free, pay particular attention to what you're...
  16. Replies
    3
    Views
    163

    Okay, do you realize that that is what getch()...

    Okay, do you realize that that is what getch() should do?

    Also do you know that getch() is a non-standard function only available on certain compilers?

    Perhaps you should consider either...
  17. Or maybe this one...

    Or maybe this one even, or this one maybe?
  18. It is a single invalid int value.

    It is a single invalid int value.
  19. Also note that the space between the format...

    Also note that the space between the format specifiers is not necessary, ("%d%d") is adequate.
  20. What type of system is this LCD connected to? ...

    What type of system is this LCD connected to?

    It doesn't look like you're initializing the LCD properly for 4 bit operation. Re-check the data sheet for more information about proper...
  21. It's been a while since I played with an LCD but...

    It's been a while since I played with an LCD but if I remember correctly you have to repeat one of the commands twice (the first I think).
  22. Have you tried placing your "wait" between each...

    Have you tried placing your "wait" between each of the commands. When placing a LCD into four bit mode the timing is quite critical, and waiting for the LCD busy flag is not always reliable for the...
  23. The problem is that 1. scanf() leaves the end of...

    The problem is that 1. scanf() leaves the end of line character in the input buffer and 2. when using the "%c" format character leading whitespace is not skipped.

    To fix the problem you can either...
  24. Perhaps you should print the variable after you...

    Perhaps you should print the variable after you have the user enter the value?
  25. Replies
    6
    Views
    137

    First off do you realize that you're not printing...

    First off do you realize that you're not printing the address of *pointer but you're trying to print the address of **pointer?

    Perhaps you should see about increasing your compiler warning levels...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4