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 


[VB] Finding GCF in Subprocedure

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

Joined: 29 Jun 2006
Posts: 191

PostPosted: Mon May 12, 2008 11:01 am    Post subject: [VB] Finding GCF in Subprocedure Reply with quote

Hello world,

My task is to create a program with two textboxes (one for numerator and one for denominator), and combine them (as a fraction) and reduce the fraction to simplest form by using the GCF (Greatest Common Factor) and then show the combined/reduced fraction in a label on the Form.

Finding the GCF and then reducing the fraction should be done in a subprocedure beneath the btn_click procedure.

The only problem is.. how would I find the GCF? Can anyone give me some hints? I'd figure it out eventually, but this'll save me a shitload amt. of time.

Thanks,
Joseph

_________________
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Mon May 12, 2008 4:10 pm    Post subject: Reply with quote

http://www.vb-helper.com/howto_net_fraction_class.html

This is in VB.NET, in case you didn't know.
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