Skip to content

Inicialize a vector with just one value in all positions

David Serafim

Asked Dec 9, 2005, 5:25 PM EST1 answer
Share
LinkedInX
Hi, I just wish to know if exist some way of inicialize a vector (all positions) with the same value, without doing any for.... 
 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    What kind of a vector? If you mean just an array of numbers, you must iterate trough the array and set values.
    0