What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Creating "public" char[]

Creating "public" char[]
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Creating "public" char[]
If I understood well, you need to declare a variable to store some text and would like that variable to be public, don't you?

Well, that in C/C++ is called a global variable and you have to define it outside any function. The syntax is the same as if it was a local variable:
code:
char topic[2048];


If you put that outside any function, you'll get a variable called topic accessible from all the functions that you have declared in the same file.

I hope I've answered your question :)
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-05-2003 10:30 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Creating "public" char[] - by TWDman on 07-05-2003 at 08:40 PM
RE: Creating "public" char[] - by Choli on 07-05-2003 at 10:30 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On