hello-world

How do you code the "Hello World!" program in your favourite language?

Help make Stack Overflow become the definitive place to come to for examples of the classic "Hello World!" program. Feel free to use any language you like and keep to one example per answer please. ...

"Hello World" in less than 20 bytes

We have had an interesting competition once, where everyone would write their implementation of hello world program. One requirement was that is should be less than 20 bytes in compiled form. the winner would be the one whose version is the smallest... What would be your solution? :) Platform: 32bit, x86 OS: DOS, Win, GNU/Linux, *BSD ...

What is the best resource for learning (N)ASM?

I've been wanting to learn assembly for a while now, and although I've tried a few times before, I haven't really been able to get past "Hello, world". Are there any good introductory tutorials to assembly (preferably using NASM, as I use Windows and Linux)? I do have a bit of C knowledge, but mainly code in higher-level languages such a...

What language has the longest "Hello world" program?

In most scripting languages, a "Hello world!" application is very short: print "Hello world" In C++, it is a little more complicated, requiring at least 46 non-whitespace characters: #include <cstdio> int main() { puts("Hello world"); } Java, at 75 non-whitespace characters, is even more verbose: class A { public static void...

How do I get a simple, Hello World Java applet to work in a browser in Mac OS X?

I'm using Java SE 1.6 on Mac OS X 10.5.6. The code for my applet is as follows: import java.awt.Graphics; import javax.swing.JApplet; public class HelloWorld extends JApplet { public void paint( Graphics g ) { super.paint( g ); g.drawString( "Hello World!", 25, 25 ); } } I compiled this to a .class ...

Getting CodeIgniter HelloWorld example to work

Guys I'm a newbie to code igniter.. I do not understanding how to use this framework. Its just opening the user guide. Can anyone tell me the steps I need to follow to execute the "hello world" program on code igniter? ...

Where does 'Hello world' come from?

'Hello world' is the usually the first example for any programming language. I've always wondered where this sentence came from, where was it first used. I've once been told that it was the first sentence ever to be displayed on a computer screen. but I've not been able to find any reference to this. So my question is: Where does the p...

Programming challenge: can you code a hello world program as a Palindrome?

So the puzzle is to write a hello world program in your language of choice, where the program's source file as a string has to be a palindrome. To be clear, the output has to be exactly "Hello, World". Edit: Well, with comments it seems trivial (not that I thought of it myself of course [sigh].. hat tip to cobbal). So new rule: no...

How do I code and compile an Amiga application?

I would like to program an application for the Amiga, just for fun! Please could someone post a step by step howto based on the following? Exactly what programming tools I should use, are there any already installed? Am I limited to plain text editors, or are there IDEs and debugging tools available? If no tools are already installed,...

Weird way to write "hello world"

Possible Duplicates: Changing c++ output without changing the main() function How to assign a method's output to a textbox value without code behind How to write hello world without modifying main function? Thanks int main(){return 0;} ...

Complete C++ i18n gettext() "hello world" example.

I am looking for a complete i18n gettext() hello world example. I have started a script based upon A tutorial on Native Language Support using GNU gettext by G. Mohanty. I am using Linux and G++. Code: cat >hellogt.cxx <<EOF // hellogt.cxx #include <libintl.h> #include <locale.h> #include <iostream> #include <cstdlib> int main (){ ...

A simple assembly program?

I've recently learned how to use MASM from MSVC++ IDE, and to test whether it works, I would like to run a short program. However, I don't know any assembly yet (that which I do is useless: ie: even though I know what i+=1; is in C++, I can't do anything without int main()). So where can I find a simple assembly program akin to the hel...

how to write hello world in assembler under windows?

Hi I wanted to write something basic in assembly under windows, I'm using nasm, but I can't get anything working. How to write and compile hello world without help of c functions on windows? thx ...

Can you explain this 'Hello world' program?

Hi, I just started learning C but I don't understand this part of the code. Can anyone explain each line of code and what it does. Thank you! Please just answer to what I said instead of saying (it should say in the book) Thank you. Hope you guys can help me. #include <stdio.h> void SayHello( void ); int main (int argc, const char * a...

lauch4j hello world program

I created a "hello world" java program and use lauch4j to convert executable jar to .exe file. When I tried to run it in cmd, but nothing printed out. I also tried to run it in launch4j. Log indicates: Executing: C:\Documents and Settings\cnbq84\Desktop\helloworld.exe. But still no "hello world" is displayed. How to display the "Hello W...

Hello World in Python

I am trying to learn Python, however I tried to run a script that is LITERALLY just: print "Hello, World!" And I get this error: File "hello.py", line 1 print "Hello, World!" ^ SyntaxError: invalid syntax What is going on!? ...

I18n C++ hello world with plurals.

Complete C++ i18n gettext() “hello world” example has C++ code that works for a simple fixed string. I am now looking for an example program that works with plurals. This example code displays six lines. Only one is correct in English. It does not handle the plurals correctly. cat >helloplurals.cxx <<EOF // hellopurals.cxx #include <lib...

Beyond Hello World

When exploring a new language, framework, IDE etc. we all start with Hello World, but where do you go after that? The process of writing a Hello World app will not give you the experience to begin writing complex, multi-tiered applications. Since the mid-90s I have implemented nearly a dozen different versions of a simple SQL IDE. This ...

Can I make C++ programs for BlackBerry (examples?)

Does anyone know I a can make C++ programs for the Blackberry platform? In some old video they state that 3rd party applications can only be written in Java. Is this true. Or is it possible to write C++ applications if you flash the device? If anyone has an hello world example in C++ for Blacberry please forward it. /Thanks :-) ...

Axis2 Hello World - cannot find symbol setParam0

Hello guys, i'm trying to develop a simple Hello World web service using Axis2 v1.5, Tomcat6 and Java 1.6, according to the following tutorial. However, i'm getting an error in the client-side code compilation: javac -extdirs C:\\axis2-1.5 org/apache/axis2/*.java -d temp/ returns code\src\org\apache\ws\axis2\Client.java:13: cannot...