No one wrote with Icon yet?
No one wrote with Icon yet?
MUMPS
I can't believe no one has done this one yet. MUMPS, also known as the M Programming Language: http://en.wikipedia.org/wiki/MUMPS
I actually HAD to get this working and finally did, so I have the instructions pretty fresh on my mind.
First, download and install "GT.M High end database + MUMPS compiler".
Extract the tar file, run './configure', let it install.
Set the required environment variables. The following assumes you installed to /var/mumps/ and are using mumps.gld in the current directory for your globals.
export gtmgbldir=mumps.gld
export gtm_dist=/var/mumps/
Final setup process is to initiate your database:
./mumps -run GDE
type 'exit' at the prompt
Then you have to initiate your database again, but in a different way? I don't understand this part but its definitely required:
./munip create
Finally, put the source below in a file called test.m
Run the command './mumps test.m' to compile the test.
Run the command './mumps -r test' to run the test.
Code:TESTR ;test file W #!!,"Please enter your name: " READ NAME W !,"Hello ",NAME,"!",! W "Welcome to Ubuntu, from (M)UMPS!!",! Q ; END
None in VHDL yet??
I thought I write it in C
C Modified
Code:#include<stdio.h> int main() { char string[100]; printf("Hello,What is your name?"); fgets(string,100,stdin); printf("Welcome to Ubuntu %s",string); getchar(); return 0; }
It's not only C Modified, it's C FIXED!I thought I write it in C
C Modified
The example in the first page is wrong, because it passes &name as
parameter for scanf and printf. It should have passed name instead.
UniVerse PickBASIC
PROGRAM HELLO.WORLD
CRT @(0,0):"Hi! What's your name?":
INPUT USERNAME
CRT @(0,2):"Hello, ":USERNAME:"! Welcome to Ubuntu!"
STOP
Scheme:
(begin (display "What is your name? ")
(let ((name (read)))
(display "Hello, ")
(display name)
(display ". Welcome to Ubuntu")))
I'm sure it's been done, but here it is in Python.
PHP Code:
name = raw_input("Hi! What's your name?")
print "Hello, " + name + '! Welcome to Ubuntu!'
Last edited by seventhc; January 17th, 2008 at 03:38 PM.
Blitz Basic
Code:s$=Input("Hi! Whats your name? ") Print "Hello "+s$+"! Welcome to Ubuntu!" WaitKey
Bookmarks