|
|
|
June 7th, 2009
06:03 pm - C++ Write a standards-conforming C++ program containing a sequence of at least ten different consecutive keywords not separated by identifiers, operators, punctutation characters, etc.
Here is a good starting point:
signed long int const volatile a;
Maybe I hear you say "You can add extern to that" or perhaps "Make it the return-type of a function and add qualifiers"? Good idea:
extern inline signed long int const volatile f();
Ah, and we could explicitly instantiate a template... and it could be an operator:
template extern inline signed long int const volatile operator*(X&);
http://www.vandevoorde.com/C++Solutions/ Current Music: Rhapsody of Fire - Dawn of Victory
|
Comments:
template extern inline signed long int const volatile operator new(int, int, int, int);
|
|
|
|
|
LiveJournal.com |