Search Results

Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: bsrivastava
Forum: C++ Jun 14th, 2007
Replies: 7
Views: 1,512
Posted By bsrivastava
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
Posted By bsrivastava
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
Posted By bsrivastava
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
Posted By bsrivastava
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
Posted By bsrivastava
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
Posted By bsrivastava
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
Posted By bsrivastava
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...
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC