Hi i started the book c++ from ground up,but looks like it's too old.I came across the bonded array.Question- what are they,where to use them,how and are they still used in c++11? Thank you .
aluhnev 0 Junior Poster in Training
Recommended Answers
Jump to PostIn that example, the
vals
array would be called a static array or fixed-size array. But, the tests that are done in the get and put functions would be called "bound-checking" or bounded array access (I.e., the array access is "bounded"). So this might explain how you got the term …
Jump to PostIn your example, you're writting a wrapper for a static array that adds bounds checking.
If that example is from a book, I would probably look for a better book. (for use of globals, for static array size and for some small strange bits of syntax).
All 6 Replies
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
aluhnev 0 Junior Poster in Training
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
aluhnev 0 Junior Poster in Training
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Hiroshe commented: you beat me too it +8
Hiroshe 499 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.