inString.replace problem


hello! have little issue dealing strings. instring has been declared string , using wstring.h library..

i should replace + blanks.. that's try:

code: [select]
instring.replace(char * ("+"),char * (" "));[/color]  

and in return

error: expected primary-expression before 'char'

:-?

any suggestions?

try this:
code: [select]
instring.replace("+", " ");


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > inString.replace problem


arduino

Comments