Forum: C++ Jun 14th, 2007 |
| Replies: 7 Views: 1,512 Classes can contain member objects of class type, but to ensure that initialization requirements for
the member objects are met, one of the following conditions must be met:
The contained... |
Forum: C++ May 10th, 2005 |
| Replies: 4 Views: 2,938 Prototype for 'for_each':
template<class InputIterator, class Function> inline
Function for_each(InputIterator first, InputIterator last, Function F)
Following code does the insertion of... |
Forum: C May 9th, 2005 |
| Replies: 9 Views: 6,973 int i=1;
printf("%d,%d,%d",++i,++i,++i);
above will give u 4,3,2 on windows VC++ |
Forum: C++ May 9th, 2005 |
| Replies: 5 Views: 5,627 Hello use the following insertion sort routine a template based version.
//This routine does the insertion sort
//This sorts array of object of template class T (T arr[]) & no. of elements in the... |
Forum: C++ May 9th, 2005 |
| Replies: 47 Views: 65,197 I Dont agree for usage of virtual functions neagtively impacts the performance..it does..but one needs to pay price for sth he/she wants to use..If one wants to implement the functionality of virtual... |
Forum: C++ May 9th, 2005 |
| Replies: 4 Views: 2,938 It is always better to avoid '_' in names until unless u want the code to be terse or STL kindastuff..it also make code less readable than the smallCaptialized form.. :-| |
Forum: C++ May 9th, 2005 |
| Replies: 4 Views: 2,938 Moderator edit: This response and its replies have been split from the C and C++ Timesaving Tips sticky because they do not add relevant material, and they are long enough to distract from the... |