• Post Reply Bookmark Topic Watch Topic
  • New Topic

size of vector  RSS feed

 
Puneet N Vyas
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what defines the size of the vector,i get two conflicting o/p by the following code,can any one tell me.
thanks for support

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why should it return 72? You're adding 216 elements to the vector.

 
Gavin Tranter
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In total agreement with Ulf, 216 elements should be added.
[ April 08, 2008: Message edited by: Gavin Tranter ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try to count the number of times you loop :
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!