Search:

Type: Posts; User: jimblumberg

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Since your file appears to have a "header" , you...

    Since your file appears to have a "header" , you will need to do something with this "data".

    Also it would be easier if your first true data item was not on the same line as the header.



    No ...
  2. Replies
    8
    Views
    981

    What exactly are the errors?

    What exactly are the errors?
  3. IMO, this depends on the type of data being...

    IMO, this depends on the type of data being collected. But I would say that for a single "chunk" somewhere around 256 mb would probably be a good starting place since your board only has 512 mb of...
  4. Poll: To my knowledge there is no moderator on this...

    To my knowledge there is no moderator on this board that is only a moderator on a single sub forum. All the moderators I'm aware of have moderation abilities on all the various sub forums.
    ...
  5. Poll: Perhaps you should look at the bottom of this...

    Perhaps you should look at the bottom of this thread and click on the "Contact us" "button", that seems like the easiest way to contact the people in charge to me.


    First salem is a site wide...
  6. Poll: I think the only thing I could fault anyone is...

    I think the only thing I could fault anyone is that it took so long to close the topic.

    By the way, why did you post this in the C forum? This has nothing to do with C programming problems. And...
  7. Why did you typedef that struct as a pointer? I...

    Why did you typedef that struct as a pointer? I really don't recommend hiding a pointer inside a typedef.

    Why all the horrible global variables?
  8. Replies
    6
    Views
    792

    I would suggest that you increase your compiler...

    I would suggest that you increase your compiler warning level, and fix all the warnings and errors in the code.

    Here is what my compiler is saying about the code in the OP:



    ||=== Build:...
  9. Replies
    8
    Views
    953

    First thing are you sure that you are connected...

    First thing are you sure that you are connected to "/dev/ttyYs0", "COM1"?

    Are you sure that the device connected to your com port is trying to contaminate at the same baud, parity, etc as your...
  10. Replies
    4
    Views
    560

    Perhaps you should try printing out the value...

    Perhaps you should try printing out the value sscanf() is returning? It appears to me that your sscanf() is not actually processing the string correctly.

    Look closely at your input lines, they...
  11. Replies
    3
    Views
    839

    Why not just use stdbool ...

    Why not just use stdbool ?

    By the way with your current setup, you should be able to #include tools.h in both tools.c and test.c (don't forget about using include guards).
  12. Replies
    3
    Views
    1,135

    Or better yet initialize the variables in the...

    Or better yet initialize the variables in the structure definition.



    struct SomeStruct
    {
    int a{};
    int b{};
    int c = 0;
    int d = 0;
  13. Yea the the links (other than the privacy link)...

    Yea the the links (other than the privacy link) seem to have permission problems, perhaps they are so old that they are no longer available for a "normal user".
  14. Did you try to run the program with your...

    Did you try to run the program with your debugger? The debugger should be able to tell you exactly where the problem is detected.


    By the way returning a pointer to a local variable may be part...
  15. Replies
    4
    Views
    1,200

    Have you considered using the "+r" mode? Some...

    Have you considered using the "+r" mode?

    Some documentation for the open modes of fopen.
  16. Replies
    10
    Views
    1,759

    No, in the scope you are misusing the scope...

    No, in the scope you are misusing the scope resolution operator the compiler thinks that ZERO_BALANCE is either a namespace, class or enumeration, hence the error message.

    Remember that C++ is...
  17. Replies
    10
    Views
    1,759

    What character is expected at the end of a case...

    What character is expected at the end of a case clause?

    Look closely at the lines referenced in your error messages.

    Do you know the different usage/meaning of the "::" sequence?
  18. Replies
    10
    Views
    1,759

    Please repost your code. Several of the error...

    Please repost your code. Several of the error messages tell you what to look for "expected ':' before ';' on the given line.

    Also in future cut and paste the error messages into a post, pictures...
  19. Replies
    10
    Views
    1,759

    You have a lot of misspellings, and typos,...

    You have a lot of misspellings, and typos, incorrect statement terminations, etc.

    For example that first error is being caused by a possible missing underscore.
  20. Probably not. It is most likely that the file...

    Probably not.

    It is most likely that the file is not in the current working directory.
  21. Replies
    5
    Views
    1,665

    I'd also suggest you start using C++ strings...

    I'd also suggest you start using C++ strings instead of the C-strings as a C++ string is much safer, and IMO easier to use.
  22. Replies
    5
    Views
    1,665

    Perhaps you meant to create buffer1 and buffer2...

    Perhaps you meant to create buffer1 and buffer2 as C-strings instead of as single characters?

    Lines 8 and 9 are creating single characters with the initial value of 80, not C-strings with a size...
  23. IMO, using high warning levels is something to...

    IMO, using high warning levels is something to recommend on most occasions.

    By the way I don't find the '=' versus "==" to be a hard to find bug, however setting your compiler to generate a...
  24. Replies
    17
    Views
    4,179

    I disagree, IMO, experienced programmers prefer...

    I disagree, IMO, experienced programmers prefer to have the compiler help "debug" the program. I usually use quite a few warnings when writing code, even though I will rarely have code that generates...
  25. Replies
    17
    Views
    4,179

    With gcc/g++ I would also suggest that you...

    With gcc/g++ I would also suggest that you specifically state the version of the standard you want to use, ie "-std=c++20" because by default gcc/g++ uses "-std=gnu++XX". I recommend sticking with...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4