Login
|
Signup
langref.org
-
ruby
,
erlang
,
csharp
,
fsharp
...
add..
all
clojure
cpp
go
groovy
haskell
java
ocaml
perl
php
python
scala
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
"\#{'}${"}/"
ruby
special = '\#{\'}${"}/'
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 = "\\#{'}${\"\"}/";
}
}
fsharp
let special = "\#{'}${\"}/"
#light
let special = "\#{'}${\"}/"
printfn "%s" special
fantom
special := Str<|\#{'}${"}/|>
class SolutionXX
{
Void main()
{
special := Str<|\#{'}${"}/|>
}
}
Submit a new solution for
ruby
,
erlang
,
csharp
,
fsharp
...
There are 18 other solutions in
additional
languages (
clojure
,
cpp
,
go
,
groovy
...)