On Thu, Apr 3, 2008 at 1:36 PM, alex_merlin_1985
<[EMAIL PROTECTED]> wrote:
> Hi!
>
> Could you give me an idea about how can i check if in an array is set
> a key, for example:
>
> #include <conio.h>
> #include <iostream.h>
>
> void main()
> {
> int x[10];
>
> x[0] = 1;
> x[1] = 2;
> }
>
> i need a method to check if is set a value or exists x[2]
Use std::vector instead which has methods to check bounds.
And stop using the .h forms of the C++ headers.
--
PJH
A man in a shellsuit goes into a posh furriers. He says to the shop
assistant "I want a coat".
The shop assistant, barely concealing her disdain, asks "What fur?"
The man replies "Fur ma girlfriend".