|
Have you got a link to programs to do "Goodbye Cruel World"? It might fit QA better...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Something along the lines of a dos command "Format me"? How about "Set me = Nothing" (which, of course, would be useless for this purpose in a VB6 class)?
I'm not sure if they'd work, but I'm too scared to try.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
C-3PO says he was never greeted by a binary vaporator.
|
|
|
|
|
Bergholt Stuttley Johnson wrote: Is there any programming language that hasn't had this program written?
So many programming languages have been created over the years, it's difficult to say for sure. It's possible of course, but it does look unlikely.
We might as well ask, what kind of language couldn't have a "Hello World" program written for it? Given that the purpose of the program is to display the words "Hello World" on the screen, the only possibility I can think of is a language that worked exclusively on devices that didn't have a screen or other text-capable output device – some sort of programming language for industrial robots, perhaps? Though even the Processing language used in the Arduino platform has one.
"Whereas smaller computer languages have features designed into them, C++ is unusual in having a whole swathe of functionality discovered, like a tract of 19th century Africa."
-- Verity Stob
http://www.theregister.co.uk/2006/05/05/cplusplus_cli/
|
|
|
|
|
String Theorists write "Hello, Alternately Dimensioned Universe" in ADU#*!. The string "World" results in an Ambiguous Reference error.
cat fud heer
|
|
|
|
|
At the local used book store yesterday I paged through an old book called, Amiga C For Beginners (Dirk Schaun), published in 1990. Yes, an old how to program the Amiga computer with C book.
The first program looked like:
#include <stdio.h>
void main()
{
printf("Hello, I am here!");
}
Still A Valid Program
It is interesting that the code is still valid on my current computer these many years later (25).
Art stands the test of time.
Internet Archive Is Amazing
I decided to google the book's name and was amazed that it has been digitized and made available online at (link is the page in the book with that first program):
https://archive.org/stream/1990-schaun-dirk-amiga-c-for-beginners#page/n23/mode/2up[^]
|
|
|
|
|
It's called ANSI C, it is a standard and that's what standards are for.
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: ANSI C, it is a standard and that's what standards are for
Yeah, it's nice when standards actually work.
|
|
|
|
|
They can't kill C / C++
They try, but they just can't kill the speedy beast.
All attempts to make programming computers such an experience that you need not know the computer you are programming for results in unacceptable overhead somewhere.
Long live the dangling pointer.
|
|
|
|
|
Ron Anders wrote: All attempts to make programming computers such an experience that you need not know the computer you are programming for
In fact that's the main problem. While I admit there is need of at least some technology with a high level of abstraction to ease distribution between different platforms I'm aware that these technologies shouldn't be used for anything. They are a powerful tool, and every powerful tool, like explosives, should be used by highly skilled practitioners after having discerned if it is the case of using it.
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: They are a powerful tool, and every powerful tool, like explosives, should be used by highly skilled practitioners after having discerned if it is the case of using it.
Truth that comes only from many years of experience.
|
|
|
|
|
Y'all must be one of those higher generation language coders.
|
|
|
|
|
this "hello world" is shorter than C# version ...
Cheers,
|
|
|
|
|
newton.saber wrote: printf("Hello, I am here!"); I'm surprised it compiles. It's supposed to be "Hello World."
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: It's supposed to be "Hello World."
I noticed that too and was very confused.
I'll leave it to the assembly language whitebeards to figure out that technology.
It must be a special processor op code.
|
|
|
|
|
newton.saber wrote: I noticed that too and was very confused.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
After 25 years, there should be a keyword for it...
#include <stdio.h>
void main()
{
hello;
} ...or at least a macro to fake it...
|
|
|
|
|
My CodeProject cookie expired, I signed in to upvote this. Good work.
|
|
|
|
|
C is still widely used in embedded programming and I have been writing/seeing the same code since I started programming back when dinosaurs roamed the plains.
New version: WinHeist Version 2.1.0
My goal in life is to have a psychiatric disorder named after me.
I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.
|
|
|
|
|
Mike Hankey wrote: I have been writing/seeing the same code
That's got to feel great. We in the desktop -- yes Windows -- world had it like that for a while. In some ways kind of solid with Visual C++ / Dev Studio. Then MS went to C#. Okay, that lasted a while.
Now, the web is like a new JavaScript library and/or a new language (PHP,ASP,ASPX,Ruby, Swift) every other day. blech!
I just learned...
...they pulled the rug out from under me. It's gone
|
|
|
|
|
Embedded is changing rapidly also with the advent of IoT and it will be interesting to see what survives.
New version: WinHeist Version 2.1.0
My goal in life is to have a psychiatric disorder named after me.
I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.
|
|
|
|
|
Actually main function must return an int .
Carlo The Nitpick
|
|
|
|
|
C:\DevTools\Dev-Cpp\bin>gcc hello.c
hello.c: In function `main
hello.c:4: warning: return type of `main
Haha, you are right.
We will use your brain as the compiler.
|
|
|
|
|
|
I am writing a report in word, and wanted to insert a link, so copied the URL, highlighted a word in my report and pasted and ...
... was highly disappointed to see that my word did not turn into a clickety pointing at the target URL.
I think some CP features should be part of the next windows version.
|
|
|
|