how will you create 100 objects of dummy class. Can you write pseudo code for that?
On Tue, Mar 1, 2011 at 11:11 PM, Sachin Midha <[email protected]>wrote: > Hey all... > I have another method, which will use the power of c++... > > class dummy{ > static int objectCount; > dummy(){ cout << ++objectCount <<endl; } > } > int dummy::objectCount = 0; > > Now create as many objects as required, and as you create a new > object, the total count of objects instantiated till now will be > printed. > Thus, create 100 objects to print numbers till 100.... > > I hope the method is clear...if not please let me know... > > On Mar 1, 12:14 am, Subhransupanigrahi <[email protected]> > wrote: > > Is there any way to print 1 to 10 (taking an example, it can also extend > to 100) without using loop, recursion. > > > > Sent from my iPhone > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Thanks & Regards, Gaurav Gupta 7676-999-350 "Quality is never an accident. It is always result of intelligent effort" - John Ruskin -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
