Login
|
Signup
langref.org
-
python
and
cpp
add..
all
clojure
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Lists
Declaration
Define an empty list
Assign the variable
"list"
to a list with no elements
python
list = []
list = []
cpp
C++/CLI .NET 2.0
Generic::List<String^>^ list = gcnew Generic::List<String^>();
using namespace System;
using namespace System::Collections;
int main()
{
Generic::List<String^>^ list = gcnew Generic::List<String^>();
}
cpp
std::list<std::string> list;
#include <string>
#include <list>
int main()
{
std::list<std::string> list;
}
Submit a new solution for
python
or
cpp
There are 23 other solutions in
additional
languages (
clojure
,
csharp
,
erlang
,
fantom
...)