Login
|
Signup
langref.org
-
csharp
,
erlang
,
cpp
, and
fsharp
add..
all
clojure
fantom
go
groovy
haskell
java
ocaml
perl
php
python
ruby
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
"\#{'}${"}/"
csharp
string verbatim = @"\#{'}${""""}/";
string cStyle = "\\#{'}${\"\"}/";
class SolutionXX
{
static void Main()
{
string verbatim = @"\#{'}${""""}/";
string cStyle = "\\#{'}${\"\"}/";
}
}
erlang
Special = "\\#{'}\${\"}/",
-module(special).
-export([start/0]).
start() ->
Special = "\\#{'}\${\"}/",
io:format("~s~n", [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
Submit a new solution for
csharp
,
erlang
,
cpp
, or
fsharp
There are 18 other solutions in
additional
languages (
clojure
,
fantom
,
go
,
groovy
...)