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 ...
Type: Posts; User: jimblumberg
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 ...
What exactly are the errors?
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...
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.
...
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...
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...
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?
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:...
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...
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...
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).
Or better yet initialize the variables in the structure definition.
struct SomeStruct
{
int a{};
int b{};
int c = 0;
int d = 0;
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".
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...
Have you considered using the "+r" mode?
Some documentation for the open modes of fopen.
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...
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?
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...
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.
Probably not.
It is most likely that the file is not in the current working directory.
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.
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...
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...
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...
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...