Question: I used ado.net entity framework to connect database and have an .edmx file in project.. When I tried to reach objects in code side with object initializer I can see the object names but when I tried to enter a value into textarea in throws this error.Title is a table in database and entries is another tables data but because of both tables has relationship I can see Entries down of Title. What do I have to do? I do not understand anything.. thanks for helps here is the situation

```
Title a = new Title 
{ 
 Entries=textarea.InnerText,
};

```

Answer: 
You could use `size_t` or `ptrdiff_t` as the type of an index (your second parameter is more an index inside a float array than an offset).

Your use is an index, not an offset. Notice that the standard [offsetof](http://en.wikipedia.org/wiki/Offsetof) macro is defined to return byte offsets!

In practice, you could even use `int` or `unsigned`, unless you believe your array could have billions of components.

You may want to `#include <stdint.h>` (or `<cstdint>` with a recent C++) and have explicitly sized types like `int32_t` for your indexes.

For source readability reasons, you might define

```
  typedef unsigned index_t; 

```

and later use it, e.g.

```
  float foo(float a[], index_t i); 

```

My opinion is that you just should use `int` as the type of your indexes. (but handle out-of-bound indexes appropriately).
Perhaps the answer is to use `ptrdiff_t`? It...

* can be negative;
* alludes to the difference not being in bytes, but in units of arbitrary size depending on the element type.

What do you think?