|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
How to "hello world"?
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||
|
*cough* Stock *cough*
|
I want to get into basic computer programming and thought "hello world" would be a good start". Are there any tutorials out there on how to do it.
Thanks.
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this.
|
||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Killing Zombies
![]() |
But first what language are you going to program in?
__________________
Now Playing: Borderland and Left 4 Dead 2
|
|||||||||||||
|
|
|
|
#3 (permalink) | |||||||||||||
|
PC Gamer
![]() |
I can do nothing but recommend AutoIt3 as a first language, it's incredibly good to start off with.
There are alot of tutorials spread over the net if you have found the language you would like to use already.
__________________
Quote:
Say "Thank you" with rep. _
|
|||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
Windows Wrangler
![]() |
You should realize there is no 'one way' to 'hello world'. It's not a verb - it's a commonly used introduction to a programming language.
For example, with Java, it's System.out.print("Hello World"); (The S in System is bolded because Java's case-sensitive in its actions. Semi-colons are to indicate the end of a line, and if you forget one in a large-ish block of code, it's annoying to pin-point where you messed up. Don't forget the semicolon!) Though, in Java, there's a few other things needed to get to the point where you can actually start using functions like that. If you want to learn how to code, I'd recommend starting with Java, and perhaps moving to C++ or C# after you're familiar with it (Java's sort of based off of C). You might be tempted to go with 'easier' languages like Perl or Python, but it's good learn the more verbose/difficult languages first. ![]() lol. From what you can see in my example, there are tons of minute details with programming, and not everyone can sit down and have a productive programming session. It takes a certain breed of people to learn something as abstract as code and build something with it. It's not legos, y'know .There are online tutorials on Java and C and Python and such, but I'd recommend getting a book like Head-First Java if you're serious about getting into coding.
__________________
OI![]() Now that I've gotten your attention, please read my post properly. On 22:16 UTC on 12 Sept 2009 OCN Chat was SHUT DOWN. If you want a quick question answered or want to have a casual chat with people, PM me. PLEASE, FOR CRYING OUT LOUD, use proper English!!!
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
NIF
![]() |
if you are interested in C++, which is a very good first language to learn, here are a few things to get you going!
Tutorial: http://www.cplusplus.com/doc/tutorial/ free compilers! http://www.microsoft.com/exPress/
|
|||||||||||||
|
|
|
|
#6 (permalink) | ||||||||||||
|
Intel Overclocker
|
Quote:
Basically the first 3 lines are common to basic codes until you start hitting more complex mathematics, loops and more complex programs in general. { opens when code where as } closes it Cin is the data being input Cout is what the program outputs endl is the end of a line.... Someone correct me if I made a mistake =)
|
||||||||||||
|
|
|
|
|
#7 (permalink) | ||||||||||||||
|
Intel Overclocker
![]()
Join Date: Dec 2007
Location: Seattle, Washington
Posts: 3,714
Rep: 114
![]() ![]() Unique Rep: 97
Trader Rating: 5
|
this is whati had to do in my programming class on the 2nd day of school. the title was hello world and we used Windows Visual Studio 2005 C++
__________________
Quote:
Water cooling and Cooler Master Storm Sniper Black Edition Coming Soon."
|
||||||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||
|
Audiophile
![]() |
Personally I would recommend Pascal as a first language (Or Delphi as i think it is now known - someone will correct that if I'm wrong
).My reason? Well, Pascal was primarily designed to TEACH programming... So that's a no-brainer from the start. It will also (If you have the right mindset) get you to think about encapsulation and "Object Oriented Programming" which, imho, is a "good thing". There are literally thousands of online tutorials for pascal/delphi. Whatever you do as a beginner, I would suggest ignoring the "visual" aspect of coding; Yes it can make you a nice window interface in which to "drop" your buttons etc, but you will lose-out on the fundamentals of coding if you use a visual-ide language like VB. I tried to learn with C++ and found it to be very difficult... but thats just me lol. So I went Pascal---Java. Either way, enjoy your learning and congratulations for taking the step. Reason I say that is that Software is the most complex thing (to date) that mankind has ever created... Vastly more complex thatn the hardware to which it speaks.
__________________
"I am a comedian and poet, so anything that doesn't get a laugh is a poem." Bill Hicks.
|
|||||||||||
|
|
|
|
|
#9 (permalink) | |||||||||
|
AMD Overclocker
|
Code:
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
printf("Hello world!");
return 0;
}
|
|||||||||
|
|
|
|
|
#10 (permalink) | ||||||||||||||
|
Security Sleuth
![]() |
Dont reply if you dont know any more than the OP. It simply isnt helpful.
The code was C in a C++ env. Why? I dont know, no use. Pick a language. Dont make it java, and dont make it something old like Pascal or Delphi. Python/Perl are good scripting langs, or C/++ is good for a compiled language. Youll have much more power with it.
__________________
Quote:
Proud Member of the Linux Gaming CommunityI am your friend.
|
||||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|