- Structure clash - problem statement & supporting code - 4 Updates
- Idiots - 1 Update
- return the name of the class - 2 Updates
Christian Gollwitzer <auriocus@gmx.de>: Nov 11 10:59PM +0100 Am 11.11.15 um 10:35 schrieb Juha Nieminen: >> processing as, say, awk, perl or Tcl, I cannot believe that you need >> coroutines or threads (WTF? Mutexes???) for such a simple problem. > Clearly you haven't been programming enterprise solutions enough. You are correct. I never did that. http://www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html Christian |
asetofsymbols@gmail.com: Nov 11 02:00PM -0800 Your solution has no tab as result in output even if there could be in input |
asetofsymbols@gmail.com: Nov 11 02:11PM -0800 Your Program is wrong because words are alphanumeric+symbols+other delimited only by spaces but in my country words are alphabetic only |
Ian Collins <ian-news@hotmail.com>: Nov 12 11:19AM +1300 > Your Program is wrong What program? If you are going to continue to post, do it properly. -- Ian Collins |
Gareth Owen <gwowen@gmail.com>: Nov 11 10:13PM > Some of the idiotic things that regulars of this newsgroup advocate: > 3) Never derive from standard containers despite the fact that interface > augmentation is useful. Meh. You can do interface augmentation but you do have to be careful as there's no virtual destructor. > 4) Don't use reference members despite the fact that not all classes > need to be Assignable. Who the hell advocates that? > 5) Use the memory allocated by std::vector<POD>::reserve() without > constructing elements by bypassing std::vector's modification > functions (e.g. push_back). Who the hell advocates that? |
Lynn McGuire <lmc@winsim.com>: Nov 11 12:27PM -0600 Is there a way to return the name of the class that is being compiled? Thanks, Lynn |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Nov 11 07:45PM +0100 On 11/11/2015 7:27 PM, Lynn McGuire wrote: > Is there a way to return the name of the class that is being compiled? Depends. In a method (non-static member function) you can include "<typeinfo>" and use "typeid(*this).name()", but whether it returns a cleartext name depends on the compiler. With Visual C++ it does. With g++ you can use g++ specific functionality to translate the mangled name that is returned, to a normal cleartext name. As an alternative, the "__func__" name may include a class name depending on the implementation. Cheers & hth., - Alf |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment