Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 3 Weeks Ago   #1 (permalink)
*cough* Stock *cough*
 
intel ati

Join Date: Aug 2009
Location: Lancs
Posts: 37

Rep: 0 mattc9305 Unknown
Unique Rep: 0
Trader Rating: 0
Default How to "hello world"?

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.

System: My PC
CPU
E6750 @ 2.66
Motherboard
ASRock Conroe 1333 - DVI/H
Memory
2x1GB Crucial DDR2
Graphics Card
XFX 1GB 4890
Hard Drive
250 GB WD
Sound Card
On Board
Power Supply
NorthQ 650W
CPU cooling
Stock
GPU cooling
Stock
OS
Windows 7 Professional x64
Monitor
ProView 1280x1024
mattc9305 is offline   Reply With Quote
Old 3 Weeks Ago   #2 (permalink)
Killing Zombies
 
JTD92's Avatar
 
intel nvidia

Join Date: Sep 2006
Location: PDX
Posts: 4,089

Rep: 381 JTD92 is a proven memberJTD92 is a proven memberJTD92 is a proven memberJTD92 is a proven member
Unique Rep: 307
Hardware Reviews: 1
Trader Rating: 17
Default

But first what language are you going to program in?
__________________
Now Playing: Borderland and Left 4 Dead 2

System: Gaming Rig
CPU
Intel Core 2 Duo E6400 @ 3.2Ghz
Motherboard
Gigabyte GA-P965-DS3
Memory
4GB (4 x 1GB) G.Skill DDR2 800
Graphics Card
XFX 8800GS 384MB (G92)
Hard Drive
Western Digital Caviar 160GB
Sound Card
X-Fi XtremeMusic
Power Supply
Antec Earthwatt 430W
Case
Cooler Master Centurion 5
CPU cooling
AC Freezer 7 Pro
GPU cooling
Zerotherm GX810
OS
Windows 7 Ultimate RC / Windows XP Professiona SP3
Monitor
Acer 22" Widescreen LCD
JTD92 is offline Overclocked Account JTD92's Gallery   Reply With Quote
Old 3 Weeks Ago   #3 (permalink)
PC Gamer
 
Reflux's Avatar
 
intel nvidia

Join Date: Mar 2009
Location: Angus, Scotland
Posts: 709

Rep: 39 Reflux is acknowledged by some
Unique Rep: 36
Trader Rating: 1
Default

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:
Originally Posted by BlankThis View Post
I've been seen by people walking their dog in a path behind my house dancing, naked, listening to my iPod while making pancakes..
~B~
Say "Thank you" with rep.
_

System: Backup Rig
CPU
[Intel][Pentium D][820]
Motherboard
ATi Thing
Memory
[1GB][667MHz]
Graphics Card
[XFX][9600GT]
Hard Drive
[WD][Caviar Black][40GB]
Sound Card
[On-Board]
Power Supply
[WinPower][750W]
Case
[Acer][Standard]
CPU cooling
[Intel][Stock]
OS
[Windows][XP][Professional][x32]
Monitor
[Acer][24"][X243HQBD]
Reflux is offline   Reply With Quote
Old 3 Weeks Ago   #4 (permalink)
Windows Wrangler
 
DEC_42's Avatar
 
intel nvidia

Join Date: Oct 2008
Location: 127.0.0.1
Posts: 1,309

Rep: 68 DEC_42 is acknowledged by some
Unique Rep: 64
Trader Rating: 0
Default

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!!!

System: I dupgraded D:
CPU
[Intel|Core2|QUAD|Q9550|12MBL2|2.8GHz|400x7]
Motherboard
[BioStar|TForce|TP35D2-A7]
Memory
[4x1GB|DDR2-800][Samsung|CorsairXMS2(2)|Hynix]
Graphics Card
[nVidia|XFX|9800|GT|512MB|GDDR3]
Hard Drive
[Maxtor|7H500F0|500GB|+|Seagate|1TB] «WD==DEDZ!!1»
Sound Card
[Realtek|HD|Onboard]
Power Supply
[Antec|550W|Non-Modular]
Case
[Apevia|X-Plorer|ATXB8KLW-BK]
CPU cooling
[STOCK|D:|O_O]
GPU cooling
[REFERENCE]
OS
[Windows][7|Ultimate|7600.16385.090713-1255|x64]
Monitor
[Samsung|SyncMaster|220WM]
DEC_42 is online now   Reply With Quote
Old 3 Weeks Ago   #5 (permalink)
NIF
 
smoke12291's Avatar
 
intel nvidia

Join Date: Apr 2008
Location: California
Posts: 3,480
Blog Entries: 3

Rep: 259 smoke12291 is a proven membersmoke12291 is a proven membersmoke12291 is a proven member
Unique Rep: 217
Folding Team Rank: 135
Trader Rating: 7
Default

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/
__________________
Computer Engineering Student!
learn how to fold here!
Quote:
Originally Posted by ENTERPRISE View Post
Fold For The Cause ! Fold For The People .
steam: [OCN]smoke12291

System: Main Baby
CPU
Intel Q6600 G0 3.2Ghz
Motherboard
Asus 750i P5N-D
Memory
G.Skill 2x2gb PC-8500 DDR2
Graphics Card
evga 9800gtx 512mb
Hard Drive
320gb 16mb cache
Sound Card
Realtek 7.1 (onboard)
Power Supply
Apevia Warlock 750 watt
Case
CoolerMaster 690
CPU cooling
Lapped Thermalright Ultra-120 Extreme
GPU cooling
Accelero S1 w/two 120mm fans
OS
Windows 7 Ultimate x64 / Ubuntu 9.04
Monitor
Samsung SyncMaster 932BW 19"
Overclock.net - 2009 Chimp Challenge Champions 1 Million+ Folding at Home points
smoke12291 is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 3 Weeks Ago   #6 (permalink)
Intel Overclocker
 
Benladesh's Avatar
 
intel nvidia

Join Date: Mar 2009
Location: Montréal
Posts: 326

Rep: 19 Benladesh Unknown
Unique Rep: 16
Folding Team Rank: 369
Trader Rating: 0
Default

Quote:
#include <iostream>
using namespace std;
int main()
{

cout << "Hello World!" << endl;

}
Im pretty sure thats right, I am going off memory but I think it depends on your compiler. We were taught C++ in Linux, it might be different from compiler to compiler and os to os, i know that my C++ book is different than what we were taught in class.

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 =)
__________________
System: Blue beast
CPU
Q6600 G0 OC @ 3.0Ghz
Motherboard
Asus P5K SE/EPU
Memory
8GB Kingston 800mhz DDR2
Graphics Card
9600 GT
Hard Drive
500GB
Sound Card
Integrated
Case
XCLIO A380PLUS Full Tower
CPU cooling
Cool Master Vortex 752
GPU cooling
Stock
OS
7 Ultimate x64
Overclock.net - 2009 Chimp Challenge Champions
Benladesh is offline I fold for Overclock.net   Reply With Quote
Old 3 Weeks Ago   #7 (permalink)
Intel Overclocker
 
mocha989's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Seattle, Washington
Posts: 3,714

Rep: 114 mocha989 is acknowledged by manymocha989 is acknowledged by many
Unique Rep: 97
Trader Rating: 5
Default

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:
Originally Posted by Extreme Newbie
We all know that Intel doesn't destroy faulty chips; they sell them to AMD and they become the new Phenom II X4.

Water cooling and Cooler Master Storm Sniper Black Edition Coming Soon."

System: The AutoBot
CPU
Intel Core i7 920 D0 Batch 3920B535 (Faulty IMC)
Motherboard
EVGA CLASSIFIED E760 X58
Memory
G. Skill Tridents 6GB (3x2GB) DDR3 2000mhz
Graphics Card
2x Evga GTX260 Core 216 SC in SLi
Hard Drive
2x Seagate 500GB 7200.12RPM in Raid 0
Sound Card
Onboard (For a While)
Power Supply
Corsair HX1000
Case
Open Air Sits on Motherboard Box
CPU cooling
Noctua NH-D14 w/ 2x High spd Gentle Typhoons
GPU cooling
Stock Nvidia Cooling Fan @ 55% w/ MX-3 TIM
OS
Windows 7 Ultimate X64
Monitor
Samsung 24" 2493HM @ 1920 x 1200
mocha989 is offline   Reply With Quote
Old 3 Weeks Ago   #8 (permalink)
Audiophile
 
newphase's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: Planet Gong
Posts: 1,409

Rep: 94 newphase is acknowledged by some
Unique Rep: 85
Trader Rating: 0
Default

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.
__________________
Quote:
Originally Posted by lavieinjuste View Post
Sounds like a hardware problem to me. Have you tried skipping around the hub?
[not literally]
"I am a comedian and poet, so anything that doesn't get a laugh is a poem." Bill Hicks.

System: My System
CPU
AMD Phenom 9600
Motherboard
Asus M3A
Memory
4096 Corsair PC2-6400
Graphics Card
GeForce 9600GT 512MB
Hard Drive
Western Dig-3200AAKS
Sound Card
SB X-Fi Extreme / TASCAM US122L
Power Supply
800w
Case
Fugly, lol
OS
Vista64 + Sabayon 64
Monitor
HP w2207h
newphase is offline   Reply With Quote
Old 3 Weeks Ago   #9 (permalink)
AMD Overclocker
 
amd nvidia

Join Date: Apr 2009
Posts: 420

Rep: 18 godsgift2dagame Unknown
Unique Rep: 17
Trader Rating: 0
Default

Code:
#include <iostream>
#include <stdio.h>
using namespace std;

int main()
{
    printf("Hello world!");

    return 0;
}
I believe that's how it's done in C++. Never did that, (hello world junk) but that's the basics to writing c++ so why not...
__________________
System: $775
CPU
Phenom II 720
Motherboard
Gigabyte MA790X-UD4P
Memory
4GB OCZ Reaper DDR2 1150
Hard Drive
250GB Seagate Barracuda 7200.10 x 2
Power Supply
PC Power & Cooling 610W
Case
Antec 300
CPU cooling
XIGMATEK Dark Knight-S1283V
OS
Vista 64-bit
godsgift2dagame is offline   Reply With Quote
Old 3 Weeks Ago   #10 (permalink)
Security Sleuth
 
Pooping^fish's Avatar
 
intel nvidia

Join Date: Jul 2007
Location: egypt
Posts: 1,263

Rep: 67 Pooping^fish is acknowledged by some
Unique Rep: 62
Trader Rating: 3
Default

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:
"O, hai! Want som pRon? Dwnlod ths kodk frst. Its teh bst pRonz ever, we prmis." -GibbyGano
Proud Member of the Linux Gaming Community
I am your friend.

System: ragequit
CPU
Q9550 4ghz @ 1.25v
Motherboard
Asus Max 2 formula
Memory
OCZ LV blade 1:1 950mhz
Graphics Card
8800gtx 610/1ghz
Hard Drive
7200.10 250gb
Sound Card
X-FI Extreme Music
Power Supply
750w Toughpower
Case
Lian li pc-65
CPU cooling
TRUE
GPU cooling
stock
OS
leetlinucks
Monitor
24" Westy
Pooping^fish is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 06:11 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.12611 seconds with 8 queries