Search:

Type: Posts; User: Click_here

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds; generated 53 minute(s) ago.

  1. PRINT_IF_TRUE... I'd like to see what you are...

    PRINT_IF_TRUE...

    I'd like to see what you are doing there :)
  2. Replies
    7
    Views
    164

    It's better to ask the user what they want to do...

    It's better to ask the user what they want to do now.


    This should get your started - Basically loop until the user enters 'r' to reset, or q for quit




    printf("\nsorry you need to...
  3. Replies
    7
    Views
    164

    if(count>=2) { ... } else if (count>=4) { ......

    if(count>=2) {
    ...
    } else if (count>=4) {
    ...
    }
  4. It's those sort of assumptions that people look...

    It's those sort of assumptions that people look for.

    Remember, just because we can't think of a way someone can access the programme, doesn't mean someone else can't.

    An example of this is when...
  5. It's a security weakness. See Denial of...

    It's a security weakness.

    See Denial of Service here
  6. Like in post 2...

    Like in post 2...
  7. No worries - Is rstanley...

    No worries - Is rstanley's answer sufficiant? Returning a caculated value is the way that you'd usually do it, rather than passing a pointer into a function. Passing a pointer into a function is...
  8. You don't have to save a copy of the value if you...

    You don't have to save a copy of the value if you don't want to.


    Because of the way you are using incValue, I'm guessing that you don't want to return the value of "val".


    Also, you can use...
  9. There is nothing wrong with using conio.h if you...

    There is nothing wrong with using conio.h if you are aware that it won't work outside of windows and you don't intend it to. When it comes to writing code for command prompt on Windows, it's...
  10. Oh I see - You are not checking for EOF... ...

    Oh I see - You are not checking for EOF...



    #include <stdio.h>

    int main(void)
    {
    int ch;
    char buf[BUFSIZ];
  11. If you are using Windows you can use conio.h - >...

    If you are using Windows you can use conio.h - > kbhit()

    On Windows it is really easy to see if something is on stdin before trying to read




    #include <conio.h>
    ...
    if (kbhit())
  12. Replies
    3
    Views
    414

    Have a look at the ptrdiff_t type

    Have a look at the ptrdiff_t type
  13. The easiest way is to use sscanf into a char...

    The easiest way is to use sscanf into a char array, and then fputs - That way you can reuse a lot of that code.

    Your scanf's from the file will also need to change, because you are now reading...
  14. Niccolo should have used C code for a C forum,...

    Niccolo should have used C code for a C forum, not C++...
  15. If it needs to be that fast, you should probably...

    If it needs to be that fast, you should probably consider writing it in assembly :)

    As a side note...
    Why fflush(stdin) is wrong - Cprogramming.com
  16. One is a void and one you should avoid.

    One is a void and one you should avoid.
  17. Thread: Those days

    by Click_here
    Replies
    2
    Views
    259

    Those days

    I spent half of the day trying to work out why I couldn't program a PIC10F202, only to find out that I had soldered an identical looking (but very different) LT1933 in its place.

    The two devices...
  18. Replies
    5
    Views
    417

    int *foo; I couldn't help myself...

    int *foo;


    I couldn't help myself...
  19. Replies
    7
    Views
    476

    Where is this code being ran? Remember that...

    Where is this code being ran?
    Remember that reading a member of a union whose value was entered from a different member is implementation defined
  20. Here is the actual main.cpp for Arduino ...

    Here is the actual main.cpp for Arduino

    ArduinoCore-avr/main.cpp at master * arduino/ArduinoCore-avr * GitHub
  21. Remember the other day when I said that it is...

    Remember the other day when I said that it is like this...


    int main(void)
    {
    Setup();

    for(;;)
    {
    Loop();
  22. The Arduino has no operating system - It is a...

    The Arduino has no operating system - It is a free standing (or bare metal) environment.
  23. I agree with John.c in that static is what you...

    I agree with John.c in that static is what you want.

    But why can't you make another inner loop that goes through the input one byte at a time - And if the key is incorrect, break the inner loop...
  24. Replies
    21
    Views
    685

    You are wrong. The function *actually* checks to...

    You are wrong. The function *actually* checks to see if the string is easily incorporated into a rap and emails Matthew Sobol's daemon. (along with other background tasks...) :P
  25. Replies
    21
    Views
    685

    I'm sorry laserlight, but you are making...

    I'm sorry laserlight, but you are making assumptions about a function that was never writen... And missing the point completely...

    The point that I was trying to make is - Sure strtok didn't work...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4