Given that is your starting point for your post, I haven't bothered to read further, so have no idea if there is any merit in your post or not.
Not to matter. I've been tiring of this site...
Type: Posts; User: grumpy
Given that is your starting point for your post, I haven't bothered to read further, so have no idea if there is any merit in your post or not.
Not to matter. I've been tiring of this site...
Not really. The context in which an I/O error is critical is in its context of use, not in the act of doing I/O.
It is possible to recover from finding that a file does not exist (e.g. by...
It is probably fairer to say it is a concern with quality of implementation of the compiler (i.e. what diagnostics it produces) rather than compiler installation.
sizeof is rather unique in C as...
Writing beyond the extent of any allocated memory can crash your program. It doesn't matter if that memory is categorised as heap, stack, virtual, physical, or anything else. Similarly, it...
Oh, rubbish. All real-world programming languages have practical limitations, including whatever favourite language of yours that works as you suggest. Yes, there are programming languages that...
Arrays can't be assigned.
They can only be initialised at the point of definition (i.e. line 3 in your code). After that, elements need to be assigned individually (e.g. in a loop) or values of...
Typedefs wouldn't work in all cases.
Consider what would happen if it was decided to use a "huge int" type (say a class named huge_int_type). Even if the implementer of such a type was to...
If libraries need to do that, I would suggest that their error handling strategy isn't properly sorted out.
Generally speaking, I will use error codes to report recoverable status information. ...
Yeah, but I wouldn't use such a thing, since it bakes in type specific dependencies. Picture what would need to be done if, for some reason, the variables need to be changed so they are of some...
"sum += array[i++]" is an example of an expression with multiple side effects (i.e. changing more than one value): it evaluates i, accesses array[i], it changes i, it changes sum.
As a general...
Since sizeof(y) is 24, the only way the total could be 44 would be if an int (member named b) had size zero. Which is not possible.
If VC++ gives a compiler error, then it is doing the right thing. sizeof() is not valid on incomplete types.
Wrong question. Infinity is not represented by a type. It is represented as a special value of a type (particularly a numeric type) if it is represented at all.
The output streaming operators...
Which witch?
Assuming you have specified main() in the form "int main(int argc, char **argv)" form, look at argv[0] first. While it is not guaranteed to contain the complete path of your...
13898
Who said I was taking anything seriously?
That's a bit of an exaggeration. The philosophy in the standardisation process is to avoid overhead of features within a program unless those features are used. They will accept overhead if...
The error() function provided by that sample (from Stroustrup) throws an exception. If an exception is not caught, std::terminate() is called. std::terminate(), by default, calls abort(). Your...
I do .... but I don't typically watch shows about programmers, nerds, or geeks.
Although (gasp!) I confess to developing software on occasion, I've never claimed to be a programmer ;) I...
It wasn't a paper weight. It was actually a pair of 20 kg kettlebells. I'd just finished a quick series of reps, was a bit tired and lazy, and didn't apply good technique to put one of them down....
T is known for every instantiation of the template. That includes for all member functions of a template class, including copy constructors.
Girls, hopefully without too much doping, are much more interesting on a date than FETs. If less predictable.
I'd use type traits. If you're using C++11, look up std::is_copy_constructible() and std::is_copy_assignable() in <type_traits>.
These are compile time tests.
John, there are horizons offline too. Not all means of interaction involve transistors.
Can't do that in C.
Arrays, pointers, and structs are not interchangeable, so array syntax cannot be used to access information from a struct.
Unrelated to your question, main() returns int,...