Login
|
Signup
langref.org
-
scala
,
erlang
, and
csharp
add..
all
clojure
cpp
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
ruby
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Strings
Declaration
Define a string containing special characters
Define the literal string
"\#{'}${"}/"
scala
Java 1.5 or later
val special = "\\#{'}${\"}/"
val special2 = """\#{'}${"}/"""
val special = "\\#{'}${\"}/"
val special2 = """\#{'}${"}/"""
println(special)
erlang
Special = "\\#{'}\${\"}/",
-module(special).
-export([start/0]).
start() ->
Special = "\\#{'}\${\"}/",
io:format("~s~n", [Special]).
csharp
string verbatim = @"\#{'}${""""}/";
string cStyle = "\\#{'}${\"\"}/";
class SolutionXX
{
static void Main()
{
string verbatim = @"\#{'}${""""}/";
string cStyle = "\\#{'}${\"\"}/";
}
}
Submit a new solution for
scala
,
erlang
, or
csharp
There are 20 other solutions in
additional
languages (
clojure
,
cpp
,
fantom
,
fsharp
...)