I want to use “*” in a string.
I want to store in a string something like this
string strin="e list * "*"\r\n";
But visual studio shows error for this line and do not compile.
Error:
Operator ‘*’ cannot be applied to operands of type ‘string’ and ‘string’
How can I use this?
You need to escape the double quotes in your string, it would be better like this:
My assumption is you want a real carriage return/linefeed, not the literal “\r\n” characters, that is why I stripped the ‘@’ symbol