I have got a homework named greatest common divisor of two integers write in C++ in MS visual c++ 2008 in windows form. Using listbox, textbox... I don't know how write this programme. Please help me thank you. Sorry for my English.
goback
0
Newbie Poster
Recommended Answers
Jump to PostDo you know how to calculate the GCD of a value? That's the code that goes into you CALC button.
If you are asking how to interface with the form, textboxes, and buttons from the beginning, you need a tutorial, not a forum. We help people solve problems, we …
Jump to PostTry to use this function to calculate the GCD of two numbers:
int computeGCD (const int& intA, const int& intB) { if (intB == 0) return intA; return computeGCD (intB, intA % intB); }
All 8 Replies
kooia
1
Light Poster
goback
0
Newbie Poster
goback
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
n.utiu
0
Light Poster
goback
0
Newbie Poster
goback
0
Newbie Poster
goback
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.