You are here:

C/handling of large number in c++

Advertisement


Question
dear sir,
 I am a student of M.Sc(maths) in IIT(DELHI).
i am working on a problem finding quadratic residue for large numbers.my problem is how to handle large numbers(like 200 digits and more) in c++ language

Answer
Hi Sandeep

Firstly I would request you not to call me sir coz I am also a student of MCA from Kolkata.

The main hint to your problem is to design a class properly somewhat like this
class MyNum
{
char str[100];//For storing the number as binary
[other member functions]
};
Now redefine all the operators like + ,- , / , *, <<, >>,                                                     == etc so that you can perform any operation you wish.

You may refer this website where you may find many such problems listed there http://www.scodz.com this might help you to develop your program.

For any further queries and help please feel free to get back to me.

regards
Joydeep Bhattacharya
http://www.scodz.com

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

Ability to solve C and Data Structure problems and puzzles with simple and easy to understand logic.

Experience

C, C++, Java, Data Structure, PHP, Web Designing

Organizations
http://www.scodz.com Designation: webmaster

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Past/Present Clients
http://analysingc.50webs.com http://www.funforu.com

©2012 About.com, a part of The New York Times Company. All rights reserved.