This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| void main(void) | |
| { | |
| char *message[] = {"Hello, ", "world."}; | |
| int i; | |
| for(i = 0; i < 2; ++i) | |
| printf("%s", message[i]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.tocadoelfo.helloworld | |
| import java.util.* | |
| interface Printer { | |
| void print(Message message); | |
| } | |
| class Message { | |
| private String message; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream.h> | |
| #include <string.h> | |
| class string | |
| { | |
| private: | |
| int size; | |
| char *ptr; | |
| string() : size(0), ptr(new char[1]) { ptr[0] = 0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ++++++++++[>+++++++>++++++++++>+++<<<-]>++.>+.+++++++ | |
| ..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mov ax,cs | |
| mov ds,ax | |
| mov ah,9 | |
| mov dx, offset Hello | |
| int 21h | |
| xor ax,ax | |
| int 21h | |
| Hello: | |
| db "Hello, world.",14,10,"$" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/perl | |
| $msg="Hello, world.\n"; | |
| if ($#ARGV >= 0) { | |
| while(defined($arg=shift(@ARGV))) { | |
| $outfilename = $arg; | |
| open(FILE, ">" . $outfilename) || die "Nao foi possivel escrever $arg: $!\n"; | |
| print (FILE $msg); | |
| close(FILE) || die "Nao foi possivel fechar $arg: $!\n"; | |
| } | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "Hello, world." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mail -s "Hello, world." edu@lalala.com.br << EOF | |
| Edu, voce poderia por gentileza escrever para mim um programa que imprime "Hello, world." e me enviar? | |
| Eu preciso para amanha. | |
| Obrigado :) | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zmail edu | |
| Eu preciso de um programa "Hello, world." na minha mesa esta tarde. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface Printer { | |
| void print(Message message); | |
| } | |
| class Message { | |
| private String message; | |
| public Message(String message) { | |
| this.message = message; | |
| } |