Why are you working with arrays? A proper container (e.g., std::vector) is more robust and safer.
As for the other part of your problem, this is easily solvable with std::generate and a functor.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Plasmator Search: Search took 0.21 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |