Monday, May 24, 2010

Help me c++programme which does the following question?

1. create a vector of size 1000 and have it store the values:01.,1.1,2.1,3.1,.....999.1


2. Truncate the vector to a size of 5.


3. Print out how many values the vector is storing(use the vector itself to get this information)


4. Empty out the vector so that it stores NO values.

Help me c++programme which does the following question?
1.


1, 1.1, 2.1, 3.1,...99...


wtf kind of pattern is that?





2. how do u truncate a vector? u mean like free(%26amp;(vector+5)); ?





3. if u cant figure this out then thats just sad





4. huh? u mean like free(vector); ?


No comments:

Post a Comment