Brett W. McCoy wrote:
> On 8/7/07, mano M <[EMAIL PROTECTED]> wrote:
>
>   
>>   I like to initialize array of values at the time of creation
>>   int *p = new int[10];
>>   How can I initialize without using loop .Will memset work with new 
>> operator?or any other solution?
>>     
>
> What's wrong with using a loop?
>   
nothing in particular, but
std::copy
std::fill
std::generate
should be preferable

> -- Brett
> ------------------------------------------------------------
> "In the rhythm of music a secret is hidden;
>     If I were to divulge it, it would overturn the world."
>                -- Jelaleddin Rumi
>
>
> To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
> Yahoo! Groups Links
>
>
>
>
>   

Reply via email to