You have to cast malloc's return in C++, but you shouldn't be using malloc with C++. In C, you don't have to (and don't want to) cast the return....
Oh, my Lord, get real. Microsoft Visual C++ 6.0 was released it 1998. It is minimally compliant with the standard, which was released after that...
The writing is being done by cerr. I would suggest that your array, by normal standards, is "on its side". Rows (height) are generally...
Slow your code down? Get real. He's doing this calculation every few milliseconds? He's measuring intervals back before he even knew what...
You can farble around with that all you want to, but mktime returns a time value that is as I mentioned in my original response. You can call...
The best thing you can do is convert your dates into a standard form. One common form is the number of seconds elapsed since the epoch. The...
Works for me. Perhaps you have defined it otherwise, elsewhere.
No, it should not. Strtok returns a NULL when no more tokens are found. On the first call it found "string to split up". The return will be a...
You're entirely correct. About 80% of my programming was in assembler. The purpose of the higher level languages is to introduce abstraction so...
C++ is both more powerful and has easier to use constructs than C (because OO is built in, you don't have to labor for it). You can, of course,...
Are you using C or C++?
Then you're going to have to go around the block the long way. If you know how long the array is, then make an unsigned int pointer and point it...
You don't say what the type of p_lpszFileData[l_iDataSize] is. lpsz suggests that lpszFileData is a pointer to char, which is dereferenced using...
float (*pFloat)[5] = new float [3][5];
The function declaration is not mandatory in C++ if the fuction definition precedes the first use of the function.
You get the warning because the comparison could give you an error. For simplicity, consider that an int or unsigned int were one byte. 0xff...
The default return type of a function in C is not void, but int. The return type of main is int for both languages. Function declarations (or...
If you mean return keyword instead of return function, then: if (error) return EOF;
Man scanf and read the documentation carefully. You also need to consider how to provide information with your question. You don't even mention...
Separate names with a comma.