Talk:Hello world program
From Wikipedia, the free encyclopedia
Archives |
[edit] can we add at least a c++ code to the wiki?
i feel the article is very naked with a proper c++ code, consider it is the most stable and widely used programming languege there is today.
#include <iostream.h>
int main ()
{
cout<<"Hello World.";
return 0;
}
—The preceding unsigned comment was added by O1001010 (talk • contribs).
- A wag might observe that we already have a perfectly-valid C++ program; it's the first one in the article ;-).
- Atlant 16:44, 24 April 2007 (UTC)
that will compile? hummm.
- By definition, any valid C program is a valid C++ program.
- Atlant 23:48, 24 April 2007 (UTC)
-
- No, that's not correct. C is not an exact subset of C++. The first (C) program in the article is not valid C++ code. In fact, it's not even valid C99 code. See Compatibility of C and C++ for more details.
- As far as adding a C++ example, I think it is far more appropriate to provide only historically significant source code for the first few "Hello, world" programs, and let the List of hello world programs article provide all the rest.
- — Loadmaster 23:10, 8 May 2007 (UTC)
- "the most stable[citation needed] and widely used {{Fact}} programming languege there is today[who?]."?--Exidor (talk) 11:11, 9 March 2008 (UTC)
[edit] Well, at least..
if not the most prevalent, how about [one of] the most esoteric? Brainf*ck!
+++++[>>>++++++<<<-]>>>++<<<++++++ ++++[>++++++++++<-]>+++++++++<++++ +++[>>+++++++++++<<-]>>-----.+++++ <--------.+++++++..+++.>>>.<<<++++ ++++.--------.+++.------.--------.
Marcthepirate 18:20, 8 May 2007 (UTC)
-
- Again, see the List of hello world programs. Given the existence of that page it's probably more important to decide which specific examples to leave out of this one. —Preceding unsigned comment added by 202.27.216.35 (talk) 04:56, 9 December 2007 (UTC)
[edit] New tag for <source>code
I did not initially use this tag for the sample in B but someone has applied it pretending that the code is in C. If this is OK, then fine: otherwise could someone remove it? I'm not right now sufficiently clear that B is close enough to C for this to be valid. TIA HAND Phil | Talk 16:52, 15 May 2007 (UTC)
- You're correct; C's syntax is not the same as B's, and that program demonstrates a couple of the differences. I've reverted the <source> tags to <code> anyway (per my comments at Wikipedia talk:WikiProject Programming languages, which you [Phil] already know about). <code> has the additional benefit of graceful degradation; I've tagged the B code with <code lang="b">, which would produce a nasty error message if you tried it with <source>. --Quuxplusone 06:59, 18 May 2007 (UTC)
[edit] Could we have a separate article on Hello world on different languages?
Could we have a separate article on Hello world on different languages to write hello world code in every language on earth?
[edit] should the LSL variation be mentioned?
in the virtual world Second Life when one creates a new script it is by default a variant of the hello world theme, instead of "hello world" it says "hello avatar". Should it be mentioned on this article?--TiagoTiago 21:57, 17 June 2007 (UTC)
[edit] Link to factorial?
I see lots of people implementing recursive factorial as their second program in a language they're learning. Maybe this page could link to factorial in the "see also" section?
[edit] Hello World BASIC
A BASIC program of Hello World is short, sweet, and shows one of the most simple if not the most simple Hello World Program.
Print "Hello World"
It is just as important as all of those other programming languages with the exception of C.
Super 4 Vegeta 22:30, 21 September 2007 (UTC)
[edit] Online Quiz
Can anyone explain what relevance this link (C Online Quiz) in the main page has to the subject?
[edit] = Fortran 90 =
program prb implicit none
! here is the execution part
write(*,*) 'Hello World'
read(*,*) !this forces the pressing of a key before a window is closed
end program prb —Preceding unsigned comment added by 149.169.24.250 (talk) 18:28, 1 February 2008 (UTC)
[edit] is the history acurate?
I was reading the instruction book for a trs-80 which ran on basic and i discovered that it also gave hello world as an example. if memory serves (this was a while ago) it said that the use of hello world had been part of a trdition started before BASIC! could someone find a way to check me on this and then if i'm right change the history. —Preceding unsigned comment added by 71.250.3.220 (talk) 21:24, 26 April 2008 (UTC)
[edit] External link removed
I removed the following external link:
- helloworld.googletoad.com The Hello World Collection with 360+ programming language
because it's a mere copy (and one that gives no credit to the original author) of the Hello World Collection at http://www.roesler-ac.de/wolfram/hello.htm which doesn't add any original content. wr 80.137.174.130 (talk) —Preceding comment was added at 21:43, 20 May 2008 (UTC)

