how is a vector diff from an array:
int[] num = {5, 4, 7, 8, 9};
int total = 0;
for(int i = 0; i = num.length; i++) {
total += num[i];
}
cout << "The total is "<< total << endl;
}
"Victor A. Wagner Jr." <[EMAIL PROTECTED]> wrote:
At 23:33 2007-01-27, Robert Ryan wrote:
is a vector more like a small linked list if it can increase and decrease at
will
in C++ a vector can increase at will, and it will keep track if you tell it
it's smaller, but it doesn't have to listen to you
Michael Brown <[EMAIL PROTECTED]> wrote:
In java, a vector is basically an array that can grow while in runtime. In
other words, it has no set length.
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
Everyone is raving about the all-new Yahoo! Mail beta. Victor A. Wagner Jr.
http://rudbek.com
The five most dangerous words in the English language:
"There oughta be a law"
---------------------------------
Don't get soaked. Take a quick peak at the forecast
with theYahoo! Search weather shortcut.