Login
|
Signup
langref.org
-
cpp
add..
all
clojure
csharp
erlang
fantom
fsharp
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
Printing
Output a string to the console
Write the string
"Hello World!"
to STDOUT
cpp
std::cout << "Hello World" << std::endl;
include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
}
cpp
std::printf("Hello World\n");
include <cstdio>
int main()
{
std::printf("Hello World\n");
}
cpp
C++/CLI .NET 2.0
Console::WriteLine(L"Hello World");
using namespace System;
int main()
{
Console::WriteLine(L"Hello World");
}
Submit a new solution for
cpp
There are 22 other solutions in
additional
languages (
clojure
,
csharp
,
erlang
,
fantom
...)