Post: [C# +] Understanding arrays
09-02-2011, 04:56 PM #1
Woof
...hmm
(adsbygoogle = window.adsbygoogle || []).push({}); Hello.
Just thought I would share with you guys my knowledge of arrays.

Now if you do not know what a array is or used for read the spoiler below.
A array is used the set more then one value to a variable.
Arrays are used highly in encryption & decryption scripts.
Arrays can be used for the application to add its self multiple variables depending on a file etc.


How to make and set values to an array:
A array is set as any other variable just with [] at the end.
    Int[COLOR=Red][][/COLOR] Badman;

To set a value in each array you will do this.
NOTE: the system counts from 0 not 1 so always stay one behind.
    Int[COLOR=Red][[B][/B]][/COLOR] Badman;
Badman[COLOR=Red][[B]0[/B]][/COLOR] = 40;
Badman[COLOR=Red][[B]1[/B]][/COLOR] = 37;
Badman[COLOR=Red][[B]2[/B]] [/COLOR]= 86;

This is a faster way i use to set values.
    Int[COLOR=Red][[B][/B]][/COLOR] Badman = [COLOR=Red]{[B]40, 37, 86[/B]}[/COLOR];


How to set a number of values though a variable:

There is not much needed to explain how this works,
with basic knowledge of C# you will understand.
    Int[COLOR=Red][[B][/B]] [/COLOR] Badman = [COLOR=Red]{[B]37, 43, 54[/B]}[/COLOR];
int i;
for([COLOR=Red][B]i[/B]=0;[B] i<3[/B]; [B]i[/B]++[/COLOR])
{
String Boobs = "Look boobs: " + Badman[COLOR=Red][[B]i[/B]][/COLOR] + "... or not :(";
}


Hope this helped, might post more tutorials later. Winky Winky
I do NOT give permission for this thread to be copied for other sites.
Last edited by Woof ; 11-21-2011 at 09:28 PM.

The following 3 users say thank you to Woof for this useful post:

Correy, iReset Nigga, Pichu
09-03-2011, 03:13 AM #2
Correy
I'm the Original
Originally posted by BAdmaNgLiTcHa View Post
Hello.
Just thought I would share with you guys my knowledge of arrays.

Now if you do not know what a array is or used for read the spoiler below.
A array is used the set more then one value to a variable.
Arrays are used highly in encryption & decryption scripts.
Arrays can be used for the application to add its self multiple variables depending on a file etc.


How to make and set values to an array:
A array is set as any other variable just with [] at the end.
    Int Badman[COLOR=Red][][/COLOR];

In the [] is where you set the amount of values you would like the variable to store.
    Int Badman[COLOR=Red][[B]3[/B]][/COLOR];

To set a value in each array you will do this.
NOTE: the system counts from 0 not 1 so always stay one behind.
    Int Badman[COLOR=Red][[B]3[/B]][/COLOR];
Badman[COLOR=Red][[B]0[/B]][/COLOR] = 40;
Badman[COLOR=Red][[B]1[/B]][/COLOR] = 37;
Badman[COLOR=Red][[B]2[/B]] [/COLOR]= 86;

This is a faster way i use to set values.
    Int Badman[COLOR=Red][[B]3[/B]][/COLOR] = [COLOR=Red]{[B]40, 37, 86[/B]}[/COLOR];


How to set a number of values though a variable:

There is not much needed to explain how this works,
with basic knowledge of C# you will understand.
    Int Badman[COLOR=Red][[B]3[/B]] [/COLOR]= [COLOR=Red]{[B]37, 43, 54[/B]}[/COLOR];
int i;
for([COLOR=Red][B]i[/B]=0;[B] i<3[/B]; [B]i[/B]++[/COLOR])
{
String Boobs = "Look boobs: " + Badman[COLOR=Red][[B]i[/B]][/COLOR] + "... or not :(";
}


Hope this helped, might post more tutorials later. Winky Winky
I do NOT give permission for this thread to be copied for other sites.


this is awesome, helped alot.. thanks!
09-03-2011, 08:20 PM #3
Pichu
RIP PICHU.
Nice, simple, straight to the point, I like it. Also, I like BOOBIES! :fyea:

The following user thanked Pichu for this useful post:

Woof
09-14-2011, 08:17 PM #4
Josh_ox3
Treasure hunter
Already been copied to GH by someone :lol:

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo