Page 1 of 3

type * variable? what does it mean?

PostPosted: Nov 7, 2003 @ 6:06pm
by Jadam

PostPosted: Nov 7, 2003 @ 7:40pm
by Conan

PostPosted: Nov 7, 2003 @ 8:41pm
by Jadam

PostPosted: Nov 7, 2003 @ 8:42pm
by Presto

PostPosted: Nov 7, 2003 @ 11:17pm
by Dan East

PostPosted: Nov 8, 2003 @ 3:32am
by DillRye
Uh oh, another where do I put the * argument.

I do recall that Dan can stop it if it starts though, he had a really good example of why it should be int *variable instead of int* variable.

Of course as he said, C will treat it the same way.

PostPosted: Nov 8, 2003 @ 4:34am
by mlepage

PostPosted: Nov 8, 2003 @ 5:07am
by damian

PostPosted: Nov 8, 2003 @ 5:30am
by denthorq
Speaking of an asterisk (*):

I remember during the Windows days where you need to type a password before you login which displays * on the password field.

My friend cant get into the Windows... and suddenly asked me: How many * is your password?

hehe

PostPosted: Nov 8, 2003 @ 5:31am
by Jadam

PostPosted: Nov 8, 2003 @ 7:23am
by Andy
You would be setting up a function that returns a pointer to char. You can set up pointers to functions, though. Off the top of my head: I think it would be:

char *(Dummy::*ptrname)(blah blah);

( I can't see things between code tags, so the names might not be right)

PostPosted: Nov 8, 2003 @ 8:25am
by Dan East

PostPosted: Nov 8, 2003 @ 9:34am
by Andy

PostPosted: Nov 8, 2003 @ 4:05pm
by fzammetti

PostPosted: Nov 8, 2003 @ 5:05pm
by ktemkin