Upload
others
View
19
Download
0
Embed Size (px)
Citation preview
ComputerScience
Software EngineeringAnalysis and DesignNetworkingDatabaseMobile ComputingProgramming
; Hello World for Intel Assembler (MSDOS)mov ax,csmov ds,axmov ah,9mov dx, offset Helloint 21hxor ax,axint 21hHello:db “Hello World!”,13,10,”$”
(define helloworld(lambda ()
(display “Hello World”)(newline)))
#include <GL/glut.h>#define font GLUT_BITMAP_HELVETICA_18#define tx “Hello World!”void text(void){char *p, tex[] = tx;p = tex;glColor3d(1.0, 1.0, 0.0);glRasterPos2d(-.5, 0.);while(*p) glutBitmapCharacter(font, *p++);
package helloworld;import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;public class HelloWorld extends MIDlet {
public HelloWorld(){
Form form = new Form(“Hello World”);form.append(“Hello world!”);
Display.getDisplay(this).setCurrent(form);}
protected void pauseApp() { }protected void startApp() throws
javax.microedition.midlet.MIDletStateChangeException { }
protected void destroyApp(boolean parm1) throwsjavax.microedition.midlet.MIDletStateChangeException
{ }
class HelloWorld {static public void main( String args[] ) {System.out.println( “Hello World!” );}
#include <iostream>#include <ostream>
using namespace std;int main()
{cout << “Hello World!” << endl;
}