The method that I have given you, can print as many numbers as you want, depending upon how many objects you create. Yes with this method you'll have to create 100 objects of the dummy class, & that can be easily created using dummy d[100].... So that makes the method very effective & shows how much you can play with C++...;-)
On Mar 1, 4:47 pm, gaurav gupta <[email protected]> wrote: > @bittu > > please read the thread carefully. It was mentioned not to use GOTO > statement. > > > > > > > > > > On Tue, Mar 1, 2011 at 5:13 PM, bittu <[email protected]> wrote: > > here we go > > > void main() > > { > > int i; > > > i=1; > > > loop: > > printf("%d", i) > > (i<100)? i++: return 0; > > go to loop; > > > } > > > Thanks & Regards > > Shashank Mani >> "The Best Way to Escape From The Problem is to Solve > > it" > > > -- > > 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.
