Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] making a giant array, by itself

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Mon Dec 08, 2008 3:44 pm    Post subject: [C#] making a giant array, by itself Reply with quote

I want to have C# make a gigantic array, containing every possible combination, as long as the character range is 0-13.

example:
Code:

array char1;
array char2;
char1[] = 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
char2[] = 01,02,03,04,05,06,07,08,09,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,aa,ab,ac,ad . . .
and so on.
Would I make an array for all letters and then an array for all numbers and then make it loop through doing different combos?

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Mon Dec 08, 2008 3:47 pm    Post subject: Reply with quote

Why not use a vector base?

Plus array max is 255+1

_________________
Back to top
View user's profile Send private message Send e-mail
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Mon Dec 08, 2008 3:58 pm    Post subject: Reply with quote

Code:

       byte[] array = new byte[] { ... };
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Mon Dec 08, 2008 5:44 pm    Post subject: Reply with quote

_void_ wrote:
Code:

       byte[] array = new byte[] { ... };


To fill with all possible numbers:

for(int i = 10; i<99;i++)
{
array[i] = i;
}

_________________
Back to top
View user's profile Send private message Send e-mail
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Mon Dec 08, 2008 8:02 pm    Post subject: Reply with quote

if you mean you want to randomly pick something out of an array

Random myRandom = new Random();
string[] myArray = {"place holder", "this", "is", "a", "test", "place holder" }

Console.WriteLine(myArray[myRandom.Next(0, 5)]);

probably could be tweaked but yeah, off the top of my head

_________________
Back to top
View user's profile Send private message AIM Address
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Mon Dec 08, 2008 8:04 pm    Post subject: Reply with quote

yoyonerd wrote:
if you mean you want to randomly pick something out of an array

Random myRandom = new Random();
string[] myArray = {"place holder", "this", "is", "a", "test", "place holder" }

Console.WriteLine(myArray[myRandom.Next(0, 5)]);

probably could be tweaked but yeah, off the top of my head


Yet you want my source code to "Learn".

_________________
Back to top
View user's profile Send private message Send e-mail
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Mon Dec 08, 2008 8:48 pm    Post subject: Reply with quote

yeah, to figure out how you did script interpreting o.o
_________________
Back to top
View user's profile Send private message AIM Address
Deletion
I post too much
Reputation: 0

Joined: 22 Jun 2006
Posts: 2148
Location: Underground

PostPosted: Mon Dec 08, 2008 9:39 pm    Post subject: Reply with quote

Look up permutation algorithms.

It'll be fucking huge tho. Like, we're talking 13Σx=0 (26+10)^x huge.

Or in programmers terms
for(int x = 1; x < 14; x++) sum+=pow(36,x);

luls

_________________
Bitch, please.
redslothx wrote:
oh im a man so respect the penis powers
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites