Game Development Reference
In-Depth Information
to switch between programming languages once you have mastered one.
The fundamental concepts in each are the same. In some languages, such as
C, C++, C#, Javascript, Java, and PhP, even the text and layout look the same.
The basic code from each aforementioned language to print Hello World on
the computer screen is shown in listings 1.1 through 1.6.
Listing 1.1 C
#include < stdio.h>
printf("Hello World");
Listing 1.2 C++
#include < iostream >
using namespace std;
void main()
cout < < "Hello World" < < endl;
Listing 1.3 C#
public class HelloWorld
public static void Main()
System.Console.WriteLine("Hello World");
Listing 1.4 JavaScript (in Bold) Embedded in HTML
<title > Hello World</title>
<script type = "text/javascript">
document.write('Hello World');
Search Nedrilad ::

Custom Search