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 


Solved...

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

Joined: 07 Oct 2006
Posts: 313
Location: city of hackers

PostPosted: Fri Nov 13, 2009 7:20 pm    Post subject: Solved... Reply with quote

I have been missing school for few days because of the flu. I am almost clueless about instance methods. Can anyone help me with:

solved...

Any comments provided next to codes would be extremely helpful! Thank you!

_________________
You don't have enough MP to f#@% me, please try again later


Last edited by superfirepig on Sat Nov 14, 2009 4:09 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Fendaril
Cheater
Reputation: 0

Joined: 08 Nov 2009
Posts: 27

PostPosted: Fri Nov 13, 2009 8:04 pm    Post subject: Reply with quote

I dont get it. Do we organize the array? isnt it already in digit form once we pass it to the constructor.

EDIT:h ttp://en.wikipedia.org/wiki/Binary-coded_decimal . try that. If you need help pm me.
Back to top
View user's profile Send private message
superfirepig
Master Cheater
Reputation: 0

Joined: 07 Oct 2006
Posts: 313
Location: city of hackers

PostPosted: Fri Nov 13, 2009 8:17 pm    Post subject: Reply with quote

Fendaril wrote:
I dont get it. Do we organize the array? isnt it already in digit form once we pass it to the constructor.

EDIT:h ttp://en.wikipedia.org/wiki/Binary-coded_decimal . try that. If you need help pm me.


I am not very sure, but, the class BCD is basicly making a arraylist without using a arraylist...

_________________
You don't have enough MP to f#@% me, please try again later
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Fendaril
Cheater
Reputation: 0

Joined: 08 Nov 2009
Posts: 27

PostPosted: Fri Nov 13, 2009 8:27 pm    Post subject: Reply with quote

Hmm. an instance method is just a method declared without static

public int nthDigit(int n)
{
//code
}

and in main.

public static void main(String[] args)
{
BCD binary=new BCD();//create new instance of the class
int num=1;
int digit=binary.nthDigit(num);//call instance method.
}
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