C++ newb: pasing stringc as function argument

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
pin3
Posts: 108
Joined: Fri Oct 06, 2006 8:50 pm
Contact:

C++ newb: pasing stringc as function argument

Post by pin3 »

How do I pass a stringc object to a function?

Code: Select all

void ParseText()
{



}


irr::core::stringc  STc = irr::core::stringc(editbox->getText());

ParseText(STc);
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: C++ newb: pasing stringc as function argument

Post by Acki »

how about learning a bit more of C/C++ !?!?! :roll:

Code: Select all

void ParseText(irr::core::stringc theString)
{



}
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Code: Select all

void ParseText( const stringc& str )
{
}
You should really learn at least the basics of c++ if you want to use a graphics engine like irrlicht.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

You should really, really learn the basics of c++! But in meanwhile you can ask here if you don't understand something or have some problem. Others will generaly happily help you ...even if with some coments like this ;) (...as far as you keep polite tone and honor rules of course)
Post Reply