Forum: C++ May 21st, 2007 |
| Replies: 47 Views: 65,294 You should not do that before checking whether printf is slower or faster than cout.
This is very highly compiler dependent.
For example, Borland C++ 5.0 is faster for cout than for printf.
... |
Forum: C++ May 21st, 2007 |
| Replies: 47 Views: 65,294 Most compilers ignore the "register" keyword, because their optimzations are far more advanced than back in the time, where a variable had only one storage in its life...
But, the register keyword... |
Forum: C++ Aug 9th, 2006 |
| Replies: 47 Views: 65,294 That's the opposite!
Using const references is a good idea for large objects (say, 16 bytes and more).
For very small objects (smaller than a pointer), if you're lucky, you'll not loose... |
Forum: C++ Aug 8th, 2006 |
| Replies: 33 Views: 4,620 I think, you mean "superset"
You're right : C and C++ are now two different languages, and the divergence should be corrected in C++0X. |
Forum: C++ Aug 8th, 2006 |
| Replies: 33 Views: 4,620 I think you didn't understood the intent of my post.
It was only an objective consideration of mathematical comparison of C and C++ features.
My point was not at all that C is better than C++ or... |
Forum: C++ Aug 8th, 2006 |
| Replies: 33 Views: 4,620 Did you read my post?
All what I listed (except complex numbers) are NOT available in C++.
Y is a superset of X means that for any x in X, x is also in Y
The list I gave is a list of x that... |
Forum: C++ Aug 8th, 2006 |
| Replies: 47 Views: 65,294 Easy way? I don't know, but sure it is inefficient (except if the optimizer is really good).
There *are* temporary variables if from an ISO standard point-of-view.
And, this algorithm can... |
Forum: C++ Aug 8th, 2006 |
| Replies: 33 Views: 4,620 C has an extended wide character stream library thanks to C AMD1 (since 1995).
C has Variable Length Arrays.
C has restrict pointers.
C has imaginary and complex numbers (C++ has a standard... |
Forum: C++ Aug 7th, 2006 |
| Replies: 16 Views: 4,928 Ancient Dragon:
You state that you can take address of a reference.
It is true that you can take the address of an expression formed of an identifier of a variable whose type is a reference type... |
Forum: C++ May 1st, 2006 |
| Replies: 6 Views: 1,147 I'm pretty sure GCC is installed by default, with your Linux distribution.
Simply, type from bash : gcc --version
If it says something like "bash: gcc: command not found", then GCC may be not... |