< A Beginner's Guide to D < Before We Begin...
D is a language following in the footsteps of the C-language family. It has the same general syntax, so anyone familiar with C, C++, Java or C# should be able to easily pick up the language. You should see the language comparison page for more details.
Since this page is about a short introduction to D, why not start with the all-famous Hello World.
import std.stdio;
void main()
{
writefln("Hello World!");
}
For the experienced C programmer, the import and writefln should look strange. We will discuss them in later chapters.
This article is issued from
Wikibooks.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.