473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to escape "{"

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.
Jul 21 '05 #1
4 1490
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
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.

Jul 21 '05 #2
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();
};

"Luc E. Mistiaen" wrote:
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
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.


Jul 21 '05 #3
Thx, I got it

"Luc E. Mistiaen" wrote:
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
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.


Jul 21 '05 #4
triple in your case, isn' it :-)

/LM

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Thx, I got it

"Luc E. Mistiaen" wrote:
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
> 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.


Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lyn | last post by:
We use response.redirect to connect to an external web site which does not work when the "=" sign is translated to "%3B" and the ";" to "%3D". Is there a way to turn this default translation off?...
1
by: Lyn | last post by:
We use response.redirect to connect to an external web site which does not work when the "=" sign is translated to "%3B" and the ";" to "%3D". Is there a way to turn this default translation off?...
3
by: NecroJoe | last post by:
I am using PHP to generate a little javascript for one of my pages. In short it allows a user to select a value from a list and pop it into a form field on a seperate page. This works well unless...
5
by: Prince Kumar | last post by:
I am trying to escape the special characters while executing the following sql, but couldn't figure out a way. db2_all "db2 connect to mydb; db2 select * from table (SNAPSHOT_CONTAINER ( '' , -1...
2
by: Tim Marshall | last post by:
What is the docmd.runcommand accmd? for the equivalent of pressing the escape button when adding a record to a table? I'm setting up a bound form and would like to have a "cancel" button that...
5
by: Steven C | last post by:
Hello! I am trying to connect to a SQL Server (MSDE) database in mixed mode authentication, via C#, but when I use the MSDE instance name, I keep getting an "Unrecognized Escape Sequence"...
0
by: YiFai | last post by:
Hello, I'm currently writing a directx program with C++, but it takes a while to load the files necessary for the directx. When the directx window loads, it can quit the program with the...
4
by: Peter | last post by:
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.
0
by: Jeff Groves | last post by:
I'm using FreezePython on a Python program that uses wxPython and subprocess. The result almost works, but it always hits this bug: File "velauncher.py", line 847, in Launch File...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.