How to escape "{"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi:

How could I escape "{" in Console.Write(), i.e. I want output like -- { 1234
}, how could I do it in one Console.Write()?

thx.
 
Actually, I try following:
Console.Write( "{{0}}", 12 ); //ok
Console.Write( "{ {0} }", 12 ); // throw exception.

I really want to write, after simplified, something like

class abc
{
public:
abc();
};
 
Back
Top