On Fri, 24 Dec 2004 17:30:55 +1100, "john townsley"
<jo**********@optusnet.com.au> wrote in comp.lang.c++:
Please don't top-post, it is considered rude here and in most
technical discussion groups. New material you add belongs after the
quoted material you are replying to, as I did in your original post.
Do a search on Google, there are patches available for Microsoft's
brain-dead software to reply properly.
I have reformatted your post properly, and added a reply at the end
where it belongs.
"Jack Klein" <ja*******@spamcop.net> wrote in message
news:8s********************************@4ax.com... On Fri, 24 Dec 2004 16:40:15 +1100, "john townsley"
<jo**********@optusnet.com.au> wrote in comp.lang.c++:
hello
I am a little rustry with C++, when you declare a class method with a
pointer
eg...unsigned char *CTexture::LoadBitmapFile(char *fi....
what does this mean again, is this method of a class pointer?which is?
thanks
That means that the function returns a pointer to an unsigned char.
Most likely, if the member function 'LoadBitmapFile' is any
indication, it actually points to the first of a number of unsigned
chars holding the data loaded from the file.
Why is their a need to return a pointer to char why not just a char.
Why would you return a pointer from a method......would it be to point to a
large bit of information?
Read my reply again. This time read all the words, and think about
the last sentence that I wrote. If you still don't understand why a
function like this would return a pointer, you are more than rusty and
I would suggest getting a good book on C++.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html