On Sat, Mar 13, 2010 at 8:43 PM, nimak247 <[email protected]> wrote:

> Hello all,
>
> I am trying to create a type that is a pointer to a struct, but I cant seem
> to access the contents of the struct. I am trying to do something like this:
>
> typedef struct {
>        int one;
>        int *two;
> } *myT;
>
> int main()
> {
>        myT *test = new myT;
>        int y = 20;
>        test->two = &y;
>

*test->two = y;

Why are you using pointers in C++?

-- 
PJH

http://shabbleland.myminicity.com/tra
http://www.chavgangs.com/register.php?referer=9375


[Non-text portions of this message have been removed]

Reply via email to