Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / declare character variable

Author
Message
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 18th Nov 2009 10:25
Hi,
In DarkGDK, when we want declare character variable we use for example:
char* sString = "";
i don't understand what is importance of (*) operator after (char) keyword ..
entomophobiac
22
Years of Service
User Offline
Joined: 1st Nov 2002
Location: United States
Posted: 18th Nov 2009 11:21
It means that it's a pointer to a memory address and not a variable, per se.

Read up on pointers in a C++ tutorial, like this one:

http://www.cplusplus.com/doc/tutorial/pointers/

Or look at Pointer Fun with Binky:

http://www.youtube.com/watch?v=6pmWojisM_E


Either way, pointers are one of the most central aspects of C++ programming and without them, you might as well use another language.
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 18th Nov 2009 11:24
I'm still step my first steps in programming

Thanks entomophobiac,

Login to post a reply

Server time is: 2024-11-20 09:29:06
Your offset time is: 2024-11-20 09:29:06