printf (' hello world! ');

Stuart Foster stuartf@MediServe.com
Fri, 30 Jun 2000 11:04:08 -0700


And for the really sick..

dosseg
.model small
.stack 100h

.data
hello_message db 'Hello, World!',0dh,0ah,'$'

.code
main  proc
      mov    ax,@data
      mov    ds,ax

      mov    ah,9
      mov    dx,offset hello_message
      int    21h

      mov    ax,4C00h
      int    21h
main  endp
end   main



-----Original Message-----
From: Lucas Vogel [mailto:lvogel@exponent.com]
Sent: Friday, June 30, 2000 10:53 AM
To: 'plug-discuss@lists.PLUG.phoenix.az.us'
Subject: RE: printf (' hello world! ');


I think my preference is:

#include <stdio>

cout << "Hello world!\n" ;


> -----Original Message-----
> From: Kevin Buettner [mailto:kev@primenet.com]
> Sent: Friday, June 30, 2000 10:46 AM
> To: plug-discuss@lists.PLUG.phoenix.az.us
> Subject: Re: printf (' hello world! ');
> 
> 
> On Jun 30,  1:07pm, Furmanek, Greg wrote:
> 
> > Actually it supposed to be:
> > char *messsage = "hellow world!";
> > printf("%s\n", message);
> 
> Or simply
> 
>     printf("Hello world!\n");
> 
> _______________________________________________
> Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 

_______________________________________________
Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss