Search:

Type: Posts; User: jimblumberg

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. 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.
  2. Also posted here...

    Also posted here.
  3. 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.
  4. Replies
    4
    Views
    155

    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?
  5. Replies
    4
    Views
    155

    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?
  6. Replies
    1
    Views
    123

    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...
  7. Replies
    3
    Views
    150

    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...
  8. Or maybe this one...

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

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

    Also note that the space between the format specifiers is not necessary, ("%d%d") is adequate.
  11. 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...
  12. 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).
  13. 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...
  14. 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...
  15. Perhaps you should print the variable after you...

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

    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...
  17. Replies
    18
    Views
    638

    It's a friend function, not a true member...

    It's a friend function, not a true member function, more like an enhanced non-member function.


    Inline code can speed execution at the cost of larger executable so it is a trade off. And realize...
  18. Why do you need a distro that supports gcc9-2? ...

    Why do you need a distro that supports gcc9-2?

    Do you know that you can download almost any version of gcc source and compile it to run on almost any distro and that you can have multiple...
  19. Replies
    8
    Views
    180

    Why are you not using a project? Using...

    Why are you not using a project? Using Code::Blocks without a project is a very bad idea since you probably are not properly setting up the compiler options.

    I suggest you read the error/warning...
  20. Replies
    8
    Views
    180

    Does that code even compile, it doens't compile...

    Does that code even compile, it doens't compile for me:
  21. Replies
    18
    Views
    638

    Because it is inefficient to "initialize" your...

    Because it is inefficient to "initialize" your class variables in the body of the constructor.


    At this stage of your journey you should treat all warnings as errors and fix them. Once you have...
  22. Replies
    18
    Views
    638

    Your "friend" definition doesn't match the...

    Your "friend" definition doesn't match the implementation, you have an extra "const" in the definition. My compiler actually had one other message that helped find the issue:



    Also be careful,...
  23. Replies
    18
    Views
    638

    Your "friend" definition doesn't match the...

    Your "friend" definition doesn't match the implementation, you have an extra "const" in the definition. My compiler actually had one other message that helped find the issue:



    Also be careful,...
  24. Replies
    5
    Views
    200

    So what seems to be the problem? Edit: Also...

    So what seems to be the problem?

    Edit: Also you should never, Never, NEVER use gets(). This function is so unsafe that it has been removed from the current C standard.
  25. In future please post the question outside of...

    In future please post the question outside of code blocks.

    That error is telling you that you need a constructor/destructor for your class. The constructor should take care of all of those...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4