can any body tell me a udf program in c++ which accepts a squared integer matrix with odd dimensions(like 33,55....) & display the sum of the middle row and middle column elements.
please help me if you can................
arushi.05
0
Newbie Poster
Recommended Answers
Jump to Postwell as for the "mathametical" question:
if you have 5 rows it shows in c++ as 0-1-2-3-4
so you need to get the '2' row which can be done by just dividing by 2 (5 / 2 =2 - if you are using integers)
another example if there are 3 …
Jump to PostMake test cases and test it, have you coded it or not?
For me I would leave out at least the conio, clrscr and getch bit. And how are you reading the 33 or 55 square matrixes when it says input 3x3 matrix?
I can not imagine anybody typing in …
All 5 Replies
Humayoon Khan
0
Newbie Poster
Despairy
0
Light Poster
arushi.05
0
Newbie Poster
arushi.05
0
Newbie Poster
TrustyTony
888
pyMod
Team Colleague
Featured 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.