How do I assign an operator symbol like "+" to a variable without the engine thinking that I'm trying to perform a mathematical operation. I'm just needing the character "+" to be placed in particular areas throughout the program. I tried assigning it like this
operator = +;
but it wont compile due to the operator character. I thought I read somewhere that you can preface it with a "\" like this
operator = \+;
but I tried that and it didn't work either. any ideas?
thanks
operator = +;
but it wont compile due to the operator character. I thought I read somewhere that you can preface it with a "\" like this
operator = \+;
but I tried that and it didn't work either. any ideas?
thanks
Comment