Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: March 29, 2024, 2:47 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which programming language
#31
RE: Which programming language
Oh, so it's like that now is it?

Ruby:
Code:
puts "Hello world."

Bash:
Code:
echo "Hello world."

PHP:

Code:
<?php echo "Hello world."; ?>

JavaScript:

Code:
document.write("Hello world.");

C#:

Code:
Console.WriteLine("Hello world.");

...and now I'm bored.
Reply
#32
RE: Which programming language
C:
Code:
printf("Hello world");

C++:
Code:
std::cout << "Hello world";

as with most things, its only complicated if you go out of your way to make it so.
Hoi Zaeme.
Reply
#33
RE: Which programming language
Lolcode.

Code:
HAI
CAN HAS STDIO?
VISIBLE "HAI ATHEIST FORUMZ!"
KTHXBYE
Imperial Bulletin Board
Developer/Support Team Coordinator

ryanashbrook.com
My Blog
Reply
#34
RE: Which programming language
(March 11, 2010 at 10:09 pm)Rob Wrote: C:
Code:
printf("Hello world");

C++:
Code:
std::cout << "Hello world";

as with most things, its only complicated if you go out of your way to make it so.

you're leaving out the extra work you have to do when you want to specify different types of information to 'printf'. you have to learn specific symbols for integer values with the 'printf' function, for example. The 'cout' object handles different types of information for you.
Reply
#35
RE: Which programming language
Isn't the same true of all the examples given in the post above that? It isn't supposed to be a verbose tutorial on how to use the io systems of each individual language, it is just a hello world program.

Leaving out information? of course i am! I don't want to output an integer at the moment Tongue
Hoi Zaeme.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  learning a certain language to communicate to believers and the religious Quill01 13 809 January 8, 2024 at 9:49 pm
Last Post: neil
  Which do you want to go? Foxaèr 13 727 October 18, 2023 at 10:49 am
Last Post: Gawdzilla Sama
  Which famous clone would you adopt? Fake Messiah 10 907 January 24, 2023 at 7:49 am
Last Post: h4ym4n
  Which TV game show would you win? Fake Messiah 6 804 January 18, 2023 at 11:18 pm
Last Post: Neo-Scholastic
  Which is worse? Foxaèr 13 592 February 23, 2022 at 8:59 am
Last Post: brewer
  Which one is the correct phrase? brewer 20 1790 September 21, 2021 at 7:20 am
Last Post: BrianSoddingBoru4
  Which ancient thread of mine should I necro? Foxaèr 11 558 August 25, 2021 at 7:15 am
Last Post: vulcanlogician
  One thing I hate about the human language. Brian37 13 1062 June 25, 2021 at 11:19 pm
Last Post: Ranjr
  Question regarding language Macoleco 4 566 June 6, 2021 at 12:35 pm
Last Post: Brian37
  Which console zo buy a 12-year-old kid? franzis 20 2390 February 23, 2020 at 4:30 pm
Last Post: Rhizomorph13



Users browsing this thread: 1 Guest(s)