09-10-2005, 09:41 PM
in c++ how would you write a program that when run writes " this (") is a quote, and this (\) is a backslash."
url=http://www.random-seed.net][/url]
c++ cout
|
09-10-2005, 09:41 PM
in c++ how would you write a program that when run writes " this (") is a quote, and this (\) is a backslash."
url=http://www.random-seed.net][/url]
09-10-2005, 10:00 PM
\" and \\. the \ is a so called escape character within strings
09-11-2005, 12:34 AM
Just for future reference, the "\" character isn't an escape character for just C++, but many modern programming languages. JavaScript makes use of it as well.
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
09-11-2005, 05:10 AM
so does freebasic, if you use option escape. :wink:
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side...phear
09-11-2005, 07:07 PM
Quote:so does freebasic, if you use option escape. :wink: :evil: Do what? You mean I been using CHR$(34) + " <- This is a quote" all this time? when all I needed: Code: option escape :rotfl:
09-11-2005, 07:52 PM
Yup.
=p pretty amazing isn't it.
09-11-2005, 07:56 PM
Its stuff like this that makes you feel like a n00b again....
:rotfl: j/k
09-11-2005, 09:30 PM
You can also do
Code: PRINT """ <- This is a quote" |
« Next Oldest | Next Newest »
|