// C++ HELLO WORLD #include int main() { std::cout << "Hello World!" << std::endl; return 0; }
// C# HELLO WORLD using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello, world!"); Console.ReadLine(); } } }
<!--JS HELLO WORLD--> <!DOCTYPE HTML> <html> <body> <p>Header...</p> <script> alert('Hello, World!') </script> <p>...Footer</p> </body> </html>
// AS3 HELLO WORLD package { import flash.display.Sprite; import flash.events.Event; import flash.text.TextField; // add this line private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point var tf:TextField = new TextField(); tf.text = "Hello, world!"; addChild( tf ); } }
/* OBJECTIVE-C HELLO WORLD */ #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog (@"Hello, World!"); [pool drain]; return 0; }