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 05-07-08   #11 (permalink)
PC Gamer
 
intel

Join Date: Jun 2007
Location: Atlantis
Posts: 2,464

Rep: 106 blade007 is acknowledged by manyblade007 is acknowledged by many
Unique Rep: 88
Trader Rating: 13
Default

bookmarking this
__________________
Aumotocnic - "An unfortunate member of the overclock.net insomnia club"
blade007 is offline blade007's Gallery   Reply With Quote
Old 05-08-08   #12 (permalink)
Programmer
 
intel nvidia

Join Date: Nov 2006
Posts: 1,977

Rep: 132 version2 is acknowledged by manyversion2 is acknowledged by many
Unique Rep: 111
Trader Rating: 9
Default

I don't like your thinking of arrays at all. You should be using a topological approach to support the understanding of multi-dimensional arrays. I'll start by asking you about: how do you think of 4 dimensional arrays?

And you don't have an answer because you can't... except by thinking of this: variable[2][8][3][7];
Which doesn't help.

So, I highly recommend for new programmers to think of arrays as a tree diagram. Every new dimension is a new split in a tree. Try drawing it out and you'll see you'll be able to draw as many dimensions beyond 3... Sweet. (Now you can go to some bar and bet people there that you can draw something with 10 dimensions...)
__________________
System: Duo
CPU
Core 2 Duo E6600 (B2)
Motherboard
Asus P5B Deluxe
Memory
G.SKILL HZ 2x1gb DDR2 800
Graphics Card
EVGA 9600GSO 384mb (G92)
Hard Drive
1TB + WD 640gb, Maxtor 160gb
Sound Card
Audigy 2 ZS
Power Supply
FSP 450W
Case
Ultra Aluminus
CPU cooling
Noctua U12P
GPU cooling
Stock
OS
Win 7 x64, Ubuntu
Monitor
20.1'' SOYO LCD
version2 is offline   Reply With Quote
Old 05-08-08   #13 (permalink)
Commodore 64
 
jinja_ninja's Avatar
 
intel nvidia

Join Date: Oct 2007
Location: Dorset, England
Posts: 2,539

Rep: 126 jinja_ninja is acknowledged by manyjinja_ninja is acknowledged by many
Unique Rep: 110
Trader Rating: 3
Default

Very nicely done.

I don't have the "knack" for coding at all. Tried it many times at college...

I will stick to HTML and Hardware
__________________
System: Jaguar
CPU
Intel E6850 - 3.6Ghz
Motherboard
Gigabyte P45-UD3R
Memory
4GB OCZ Platinum 6400
Graphics Card
8800GT 512MB OC
Hard Drive
WD AAKS 640GB + 500GB Storage
Sound Card
Creative X-Fi Fatal1ty
Power Supply
Antec EarthWatts 500W
Case
Coolermaster Elite 330 Black
CPU cooling
Zalman 9700 LED
GPU cooling
Akasa Vortexx
OS
Windows 7 Professional x64
Monitor
22" Viewsonic VX2255
jinja_ninja is offline   Reply With Quote
Old 05-08-08   #14 (permalink)
Luck : 10pts
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Fl, US
Posts: 12,850
Blog Entries: 3

Rep: 365 Licht is a proven memberLicht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 242
Trader Rating: 0
Default

Quote:
Originally Posted by version2 View Post
I don't like your thinking of arrays at all. You should be using a topological approach to support the understanding of multi-dimensional arrays. I'll start by asking you about: how do you think of 4 dimensional arrays?

And you don't have an answer because you can't... except by thinking of this: variable[2][8][3][7];
Which doesn't help.

So, I highly recommend for new programmers to think of arrays as a tree diagram. Every new dimension is a new split in a tree. Try drawing it out and you'll see you'll be able to draw as many dimensions beyond 3... Sweet. (Now you can go to some bar and bet people there that you can draw something with 10 dimensions...)
My thinking of arrays is to help the user understand the way they can use coordinates. Using a tree for a 2 dimensional array wouldn't totally encompass the understanding of these uses. For example your listing numbers in rows of ten. Every y x's value is increased by 10 because of this (x being horizontal coordinate y being vertical.) On a tree that could look confusing, but imagining it how it is (a plain) will yield instant "ok i understand that, simple" responses.

System: Uzicht #4.5
CPU
Phenom II X4 920
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
HD4850 + HD3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows 7 Ultimate x86-x64
Monitor
Samsung SyncMaster 19"Wide
Licht is offline Overclocked Account Licht's Gallery   Reply With Quote
Old 05-08-08   #15 (permalink)
With great difficulty
 
rabidgnome229's Avatar
 
intel nvidia

Join Date: Feb 2006
Location: Pittsburgh
Posts: 5,210

Rep: 614 rabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famousrabidgnome229 is becoming famous
Unique Rep: 370
FAQs Submitted: 6
Trader Rating: 5
Default

Quote:
Originally Posted by version2 View Post
I don't like your thinking of arrays at all. You should be using a topological approach to support the understanding of multi-dimensional arrays. I'll start by asking you about: how do you think of 4 dimensional arrays?

And you don't have an answer because you can't... except by thinking of this: variable[2][8][3][7];
Which doesn't help.

So, I highly recommend for new programmers to think of arrays as a tree diagram. Every new dimension is a new split in a tree. Try drawing it out and you'll see you'll be able to draw as many dimensions beyond 3... Sweet. (Now you can go to some bar and bet people there that you can draw something with 10 dimensions...)
His way is a good method of beginning to understand multidimensional arrays. It is unfeasible with higher numbers of dimensions, but if you really need to think critically about multidimensional arrays its best to think about how they are layed out in memory (linearly) rather than trying to wade through trees. If you try to do it with trees you run into a different problem - a 10x10x10 array already has 1000 leaves and would be way too dense to actually be a useful visual.
__________________
System: It goes to eleven
CPU
E6300
Motherboard
DS3
Memory
2GB XMS2 DDR2-800
Graphics Card
EVGA 8600GTS
Hard Drive
1.294 TB
Sound Card
Audigy 2 ZS
Power Supply
Corsair 520HX
Case
Lian-Li v1000B Plus
CPU cooling
TTBT
GPU cooling
Thermalright V2
OS
Arch Linux/XP
Monitor
Samsung 226bw
rabidgnome229 is offline Overclocked Account   Reply With Quote
Old 05-10-08   #16 (permalink)
RAM Fan
 
DjQurt's Avatar
 
intel

Join Date: Jul 2007
Location: Colorado
Posts: 2,352

Rep: 82 DjQurt is acknowledged by some
Unique Rep: 77
Trader Rating: 6
Default

argh i cant get past the first step! when i open toolbox nothing is in there and i can find buttons to drag! help me licht!
__________________
Quote:
Originally Posted by falven View Post
What if i was gay???

Visit my city!
Increase my industry
Increase my traffic

System: laptop
CPU
Pentium dual core 1.86ghz
Motherboard
dell
Memory
2x1gb's
Graphics Card
x3100
Hard Drive
250gb sata
Power Supply
brick
Case
dell laptop case
CPU cooling
stock
GPU cooling
stock
OS
Windows 7
Monitor
15.4in
DjQurt is offline   Reply With Quote
Old 05-10-08   #17 (permalink)
Luck : 10pts
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Fl, US
Posts: 12,850
Blog Entries: 3

Rep: 365 Licht is a proven memberLicht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 242
Trader Rating: 0
Default

Quote:
Originally Posted by DjQurt View Post
argh i cant get past the first step! when i open toolbox nothing is in there and i can find buttons to drag! help me licht!
Have you created a new Windows Forms project?

System: Uzicht #4.5
CPU
Phenom II X4 920
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
HD4850 + HD3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows 7 Ultimate x86-x64
Monitor
Samsung SyncMaster 19"Wide
Licht is offline Overclocked Account Licht's Gallery   Reply With Quote
Old 05-14-08   #18 (permalink)
Programmer
 
alawadhi3000's Avatar
 
intel nvidia

Join Date: Oct 2005
Location: Bahrain
Posts: 1,766

Rep: 147 alawadhi3000 is acknowledged by manyalawadhi3000 is acknowledged by many
Unique Rep: 106
Folding Team Rank: 312
Hardware Reviews: 5
Trader Rating: 28
Default

Awesome, REP+

from what I see is that C# is a combination of C++ and VB codes right?
__________________
GeForce 8800GTS 320MB/9600GT/8800GT

3DMark06 11518/10963/13622
3DMark05 17948/17446/23147
3DMark03 36902/36240/42768
3DMark01 49944/43675/53827

Total 116312/109324/133364

System: My Rig
CPU
Intel Core 2 Quad Q9550 @ 3.4GHz
Motherboard
ASUS P5K3 Deluxe
Memory
4GB OCZ Intel Extreme DDR3-1600 (2X2GB)
Graphics Card
XFX 8800GT Alpha Dog Zalman Edition
Hard Drive
500GB Seagate 7200.12 + 1TB WD Green
Sound Card
ADI AD1988
Power Supply
Antec True Power 750W
Case
Thermaltake Soprano
CPU cooling
Thermaltake Big Typhoon + CM 90CFM Fan
GPU cooling
Zalman Stock Heatsink
OS
Windows 7 X64
Monitor
ASUS VH242HL-P
alawadhi3000 is offline I fold for Overclock.net   Reply With Quote
Old 05-14-08   #19 (permalink)
Luck : 10pts
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Fl, US
Posts: 12,850
Blog Entries: 3

Rep: 365 Licht is a proven memberLicht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 242
Trader Rating: 0
Default

Quote:
Originally Posted by alawadhi3000 View Post
Awesome, REP+

from what I see is that C# is a combination of C++ and VB codes right?
No C# is a combination of C++ and Java. Nothing like VB in the slightest if you get into either more then just the up front images.

System: Uzicht #4.5
CPU
Phenom II X4 920
Motherboard
Gigabyte 790X AM2+
Memory
6GB Kingston DDR2 667MHZ
Graphics Card
HD4850 + HD3870
Hard Drive
4x WD1600AAJS RAID0
Sound Card
X-Fi Extreme Gamer Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Xigmatec Rifle
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows 7 Ultimate x86-x64
Monitor
Samsung SyncMaster 19"Wide
Licht is offline Overclocked Account Licht's Gallery   Reply With Quote
Old 05-14-08   #20 (permalink)
Programmer
 
alawadhi3000's Avatar
 
intel nvidia

Join Date: Oct 2005
Location: Bahrain
Posts: 1,766

Rep: 147 alawadhi3000 is acknowledged by manyalawadhi3000 is acknowledged by many
Unique Rep: 106
Folding Team Rank: 312
Hardware Reviews: 5
Trader Rating: 28
Default

Quote:
Originally Posted by Licht View Post
No C# is a combination of C++ and Java. Nothing like VB in the slightest if you get into either more then just the up front images.
I saw the messagebox is same as VB and got confused

I didn't try C# yet as the college requires c++, VB and JAVA only
__________________
GeForce 8800GTS 320MB/9600GT/8800GT

3DMark06 11518/10963/13622
3DMark05 17948/17446/23147
3DMark03 36902/36240/42768
3DMark01 49944/43675/53827

Total 116312/109324/133364

System: My Rig
CPU
Intel Core 2 Quad Q9550 @ 3.4GHz
Motherboard
ASUS P5K3 Deluxe
Memory
4GB OCZ Intel Extreme DDR3-1600 (2X2GB)
Graphics Card
XFX 8800GT Alpha Dog Zalman Edition
Hard Drive
500GB Seagate 7200.12 + 1TB WD Green
Sound Card
ADI AD1988
Power Supply
Antec True Power 750W
Case
Thermaltake Soprano
CPU cooling
Thermaltake Big Typhoon + CM 90CFM Fan
GPU cooling
Zalman Stock Heatsink
OS
Windows 7 X64
Monitor
ASUS VH242HL-P
alawadhi3000 is offline I fold for Overclock.net   Reply With Quote
Reply

Tags
guide, learn, programming, programming guide, visual c#


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



All times are GMT -5. The time now is 07:38 PM.


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.14660 seconds with 8 queries