Login
|
Signup
langref.org
-
scala
,
erlang
,
csharp
, and
cpp
add..
all
clojure
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 = "\\#{'}${\"\"}/";
}
}
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"\\#{'}${\"}/";
}
Submit a new solution for
scala
,
erlang
,
csharp
, or
cpp
There are 18 other solutions in
additional
languages (
clojure
,
fantom
,
fsharp
,
go
...)