POV-Ray : Newsgroups : povray.off-topic : Standard libraries : Re: Standard libraries Server Time
6 Sep 2024 03:16:36 EDT (-0400)
  Re: Standard libraries  
From: scott
Date: 5 Mar 2009 04:46:13
Message: <49af9f65$1@news.povray.org>
>  Really? C has no array handling libraries whatsoever (standard C, that 
> is).
> The core language has exactly one type of array. (Ok, two if you count
> dynamically allocated and statically allocated arrays as distinct, 
> although
> they behave basically in the exact same way.)
>
>  The C++ standard libraries have two data containers which could be
> considered "arrays" (std::vector and std::deque). Perhaps three if you
> count std::string. They are pretty straightforward and well-defined.

Yep, and then when you start using .net managed C++ there is the original 
.net way of creating arrays, and then the new way...

The problem is when using pre-written code and you're not sure which method 
it's using, you have to search back for statements like this:

String[,,] s = new String[5, 3, 10];
vector<int> iV(x, y);
array<int>^myIntArray = {1,2,3,4,5};

Then try and work out what's going on...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.