Login
|
Signup
langref.org
-
ruby
,
cpp
,
fsharp
,
erlang
...
add..
all
clojure
fantom
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 = '\#{\'}${"}/'
cpp
std::string special = "\\#{'}${\"}/";
#include <string>
int main()
{
std::string special = "\\#{'}${\"}/";
}
cpp
C++/CLI .NET 2.0
String^ special = L"\\#{'}${\"}/";
using namespace System;
int main()
{
String^ special = L"\\#{'}${\"}/";
}
fsharp
let special = "\#{'}${\"}/"
#light
let special = "\#{'}${\"}/"
printfn "%s" 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
ruby
,
cpp
,
fsharp
,
erlang
...
There are 17 other solutions in
additional
languages (
clojure
,
fantom
,
go
,
groovy
...)