Search:

Type: Posts; User: mike65535

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thanks laser salem and algor, this has been quite...

    Thanks laser salem and algor, this has been quite helpful. Now it's way more clear. I also greatly appreciate algor's code example to handle this better.

    As far as my code goes, I'm not building...
  2. If I test my sscanf with a test message ...

    If I test my sscanf with a test message

    strcpy(msg,"GPGGA,,,,,,0,00,99.99,,,,,,*48");
    I get a return of 0

    A more complete test message works better -

    strcpy(msg,...
  3. Replies
    2
    Views
    1,361

    Without turning your code on its head, you might...

    Without turning your code on its head, you might want to test the choices as the user enters them rather than waiting until the end (it's rather annoying to the user to be told the first question was...
  4. OK, I'm not getting a return of '-1' any more. So...

    OK, I'm not getting a return of '-1' any more. So msg is valid but not a valid "msg" LOL.
    Thanks.

    But... I am getting a return of '0'.

    1) If msg has more fields in it than the format string in...
  5. Thanks, both posts were quite helpful! OK,...

    Thanks, both posts were quite helpful!



    OK, so... let me get this straight. The '-1' means I'm not really passing it a valid msg ?
  6. Using sscanf to parse/match an GPS (NMEA) string

    I've got some sample code that I'm trying to get working / understand.

    The sample code has a line:

    if(sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c,%f", &time, &latitude, &ns, &longitude,...
  7. You said you need to use compare_dates(). Are you...

    You said you need to use compare_dates(). Are you having trouble understanding how it works?
    Are there are specific parts of your code that you don't understand?

    There's a lot of code there. ...
  8. Replies
    79
    Views
    7,339

    >> the compiler was confused by an earlier error...

    >> the compiler was confused by an earlier error

    This is an important thing to learn. When you get bombarded with compile errors, you can fix several simple/obvious errors together at once, but...
  9. Replies
    79
    Views
    7,339

    This troubles me: Do you mean if the pointer...

    This troubles me:

    Do you mean if the pointer has some specific value for req, or do you mean does it have ANY value?
  10. Replies
    3
    Views
    2,517

    Unfortunately, much of the potential help here...

    Unfortunately, much of the potential help here will have trouble with the non-English functions, comments and variable names. Can you re-write?

    And... I, at least, don't know the "snake" problem....
  11. Replies
    79
    Views
    7,339

    Until you can get a simple example working why...

    Until you can get a simple example working why muddle the learning experience with more stuff?
  12. Replies
    79
    Views
    7,339

    C'mon, this is the most basic stuff. If you...

    C'mon, this is the most basic stuff.

    If you want to pass "func" a parameter you put the parameter in the parens

    func(45);
    func(myvariable);
    etc.
  13. Replies
    79
    Views
    7,339

    You call a function with its name. If you have...

    You call a function with its name.

    If you have a function called "func" (as you do), you call it in main() by the line

    func();

    (In your case you need to pass it a parameter)
  14. Replies
    9
    Views
    792

    How about telling us the output you want to see,...

    How about telling us the output you want to see, and the output you are getting?
  15. Replies
    79
    Views
    7,339

    Goodness, where did this code come from? You...

    Goodness, where did this code come from?

    You don't need to identify or call functions with "func" (as it seems perhaps you believe?)

    If you are having trouble understanding function calls,...
  16. Replies
    1
    Views
    1,362

    subsequences in C program - Stack Overflow...

    subsequences in C program - Stack Overflow
  17. It doesn't seem you actually asked a question. ...

    It doesn't seem you actually asked a question.

    I see you have a function, decimalPlace(), that appears to generate a value that is meant to be used, I assume, as the "width" of a column, and thus...
  18. Replies
    2
    Views
    1,449

    OK, so what's the question? Does your code not...

    OK, so what's the question? Does your code not work? not compile?

    It would be better if you published a complete (compilable) code and a specific question.

    (I noticed you try to access an...
  19. Replies
    3
    Views
    8,035

    Yes, this isn't a (typical) series in which the...

    Yes, this isn't a (typical) series in which the terms get smaller and smaller.
  20. Replies
    7
    Views
    1,003

    Are you saying you have no preprocessor? Nothing...

    Are you saying you have no preprocessor? Nothing to handle #ifdef's? Or that it's not an option to choose different #defines at compile time?

    If that's the case, you need a sort of "discovery"...
  21. Replies
    15
    Views
    2,342

    Maybe you can get us up to date by (re)posting...

    Maybe you can get us up to date by (re)posting the code and your specific question(s)?
  22. Replies
    15
    Views
    2,342

    scanf("%s",&string)

    scanf("%s",&string)
  23. Replies
    17
    Views
    2,567

    The Patriot Missile Failure...

    The Patriot Missile Failure
  24. Replies
    11
    Views
    2,669

    I'm hoping he simplified it to demonstrate the...

    I'm hoping he simplified it to demonstrate the issue he was having with mixing floats and ints.
  25. Replies
    11
    Views
    2,669

    You'll find out the hard way that c really sucks...

    You'll find out the hard way that c really sucks when you try to mix integers and floats.

    Try this:



    uitkomst = 1.0 / teller;
Results 1 to 25 of 281
Page 1 of 12 1 2 3 4