Your code look like it is written for Windows; is this correct?
Because there are differences between file handling in Windows and Linux!
Tim S.
Type: Posts; User: stahta01
Your code look like it is written for Windows; is this correct?
Because there are differences between file handling in Windows and Linux!
Tim S.
All vitamins are chemicals! If you think otherwise you likely need professional help.
Tim S.
The Fat-Soluble Vitamins: A, D, E and K
NOTE: To my knowledge you can easy over dose on any fat-soluble vitamin.
I did not know till today that vitamin D is fat-soluble; going to have to look...
Sounds like I know all of what you stated; and the macro appears to be always defined!
Under C I can set it to zero; but, under C++ it requires it to be one for C++ libraries to work.
Not...
I am having PRId64 warnings while building MinGW64 GCC under MSys2 for MinGW 64 bit. I just wish to verify my test code is correct in order to start determining the cause of the many warnings.
...
C Tutorial - Learn C - Cprogramming.com
Since, I posted the first post in this thread I have found that GCC sets explicit versions of at least different 4 values; still have not found where std=gnu++98 is set.
But, I have decided to...
Found the exact command; will try using C++11 standard next. -std=gnu++11
i686-w64-mingw32-g++ -std=gnu++98 -fno-PIE -c -DIN_GCC_FRONTEND -g -D__USE_MINGW_ACCESS -DIN_GCC -fno-exceptions...
../../gcc-git/gcc/cp/coroutines.cc:2700:22: warning: defaulted and deleted functions only available with '-std=c++11' or '-std=gnu++11'
2700 | var_nest_node () = default;
gcc/coroutines.cc...
The next thing to try would be commenting out this line
TMR0 = 0;
In the interrupt tc_int.
Been over 10 years since I did PIC programming.
Tim S.
Looking at your code; I question this line.
S=0;
Would not
Looks like Microchip C code; no idea which MCU.
Tim S.
It should be okay; unless you have a real old compiler!
If you got a warning about shadowing you do have that problem.
Tim S.
Sorry, I missed you are passing it in; still think that
ptr_arr[0] = '\0';
defaults to an int array as in the K & R days.
NOTE: It no longer does that.
Tim S.
Since you refuse to tell me if you are supposed to use malloc I give up helping you. But, since I am not that good using malloc I would likely have given up if you said yes.
Tim S.
Maybe maybe not! As I have already said it is implementation defined. If a book said that is the way it is always done, throw away that book!
The CPU and the OS normally defines the way it is done!...
FYI: The use of "conio.h" usually means the student is learning from a poor instructor in India.
Are you supposed to use malloc in this assignment?
Tim S.
Functions in C - Cprogramming.com
What you are asking is implementation defined for the most part.
Tim S.
Introduction to C - Cprogramming.com
Post your code! If you have build errors post the errors!
Tim S.
Find another book because you have no idea what you are doing!
If I tell you to remove the Ace of Spades from a deck?
What card would you remove?
Edit: Please do not ever PM again!! If you do...
Casting malloc - Cprogramming.com
The code is crap; throw it out and start over or use the advise and fix it!
Asking over and over what is wrong is a waste of time!
Functions in C - Cprogramming.com
You need to learn the difference between build and run-time errors.
And, when you get an build error post it.
Tim S.
std::sort - cppreference.com
This is wrong!
char exitConditon[]={"0"};
You need an zero terminated character array to use as an C-String!
"0" is not equal to 0