Search found 45 matches

by suman
Sat Jun 21, 2003 2:08 pm
Forum: C++
Topic: 2 dimensional dynamic array
Replies: 7
Views: 3096

Other ways

Hi, Yes there are other ways of creating 2D arrays of your own. But It is obviously painful than the two options described in the previous posts. Here is the link of the book of algorithm in which Dr. Bruno described how to do so in C++ , java or C#. The website is http://www.brpreiss.com I previous...
by suman
Sun Mar 02, 2003 5:41 pm
Forum: C++
Topic: long long int ? help
Replies: 3
Views: 2555

I/O?

You mean I/O? Use cin or cout.
:wink:

-Suman
by suman
Sat Mar 01, 2003 4:35 pm
Forum: C++
Topic: long long int ? help
Replies: 3
Views: 2555

How about this?

How about this? [cpp] #ifdef _MSC_VER typedef _int64 Long; typedef _int32 Int; typedef unsigned _int64 ULong; typedef unsigned _int32 UInt; #elif __GNUC__ typedef long long Long; typedef long Int; typedef unsigned long long ULong; typedef unsigned long UInt; #elif __BCPLUSPLUS__ typedef __int64 Long...
by suman
Fri Feb 14, 2003 5:39 pm
Forum: Volume 104 (10400-10499)
Topic: 10437 - Playing With Fraction
Replies: 9
Views: 2486

Send me your code

Dear Whinii F.
I have checked your input and output. Your last two input were invalid. Others are ok. However you may send your source to me to check. Send at udvranto@hotmail.com


- Suman
by suman
Sun Feb 09, 2003 8:06 pm
Forum: Other words
Topic: questions about Feb 8,2003 contest
Replies: 6
Views: 2122

About 64 bit data type

Hi, Actually 64 bit type is built-in in most C++ compilers. I use the following C++ code fragment to use 64 bit type [cpp] #ifdef _MSC_VER typedef _int64 Long; typedef _int32 Int; typedef unsigned _int64 ULong; typedef unsigned _int32 UInt; #elif __GNUC__ typedef long long Long; typedef long Int; ty...
by suman
Sun Feb 09, 2003 1:25 pm
Forum: Other words
Topic: acm solve sites
Replies: 51
Views: 25923

About other solve sites

Hi, First of all I like to say that I voted for `no source code'. Personally I don't like copying sources. But in the previous board I had a bad experience about this topic. As most of the person is against the source code publishing why not stop some other doing so. As one of such web site has stop...
by suman
Wed Feb 05, 2003 10:13 pm
Forum: Algorithms
Topic: Arbitrary Precision Arithmatic : BigInteger Algorithm
Replies: 9
Views: 7468

To Moni

To Moni:

Hi Moni,
Yes, I have read that post. But that post is a long one. Can you be a little more specific on which you are focussing? Thanks.



- Suman
by suman
Wed Feb 05, 2003 10:05 pm
Forum: Algorithms
Topic: Arbitrary Precision Arithmatic : BigInteger Algorithm
Replies: 9
Views: 7468

About BUG : To Nirjon

About BUG : To Nirjon Hi Nirjon, Thanks for locating the BUG for me. I am amazed at the error. I checked the code again and again. It seems to be ok. But I am not getting any reason. If you can find pls tell me. Previously I had not undergone any test over the correctness of "division" algorithm . N...
by suman
Sun Dec 15, 2002 3:35 pm
Forum: Algorithms
Topic: A really really good book specialized on graph
Replies: 5
Views: 3251

I have got "West"

Hi,
Thanks to Shahab. I have got the book of "West". Although I have not read that, it seems to be a good book. And I am searching for "Algo. in C part V", that will be also a good one, I think.

- Suman
by suman
Tue Dec 10, 2002 10:41 am
Forum: C++
Topic: Bigint
Replies: 37
Views: 17145

Sometime they are blessing

"Class" are blessing of any object oriented language. Once you write a class to do a thing, debugged, handled any odd case and then forget the inside implementation of it. Then Just use it in other time without re-thinking and re-doing it. That's why they are created. I do agree class makes things h...
by suman
Mon Dec 02, 2002 12:21 am
Forum: Algorithms
Topic: A really really good book specialized on graph
Replies: 5
Views: 3251

Thanks to both of you

Hi, Thanks to both of you. I have already searched the local book shop but could not find the book specified by Lary. Also I dont think that the book specified by shahab will be available locally. Moreover I dont have a credit card, so that I can buy it online. :( The book shop contains some book on...
by suman
Sun Dec 01, 2002 4:46 pm
Forum: Algorithms
Topic: Bellman ford algorithm in C
Replies: 3
Views: 7951

An Implementation

Hi, Here is an implementation done by Sadi Khan, Sadi_Khan_mail@yahoo.com , one of my friend. I believe he wont mind posting the code here. I may delete this post if he does. I am not sure about the correctness of this program. More over don't know about the complexity. It was done more or less usin...
by suman
Fri Nov 29, 2002 6:24 pm
Forum: C++
Topic: Bigint
Replies: 37
Views: 17145

Good point

Good Point, I agree again. But then java should have the similar inability like C++, other may argue. :wink:



- Suman
by suman
Thu Nov 28, 2002 4:02 pm
Forum: C++
Topic: Bigint
Replies: 37
Views: 17145

They should provide the support for it

Hi, I agree with stefan. I think they should provide support for math package for java, and gmp (GNU Multi precision) for C++. This thing became so frequent in use that these libraries should be suplied by default. - Suman
by suman
Thu Nov 28, 2002 3:57 pm
Forum: C++
Topic: How to specify a dynamic 2-dimension array
Replies: 2
Views: 2007

Here is a way

Hi, Try the following, it's copied from a help of Borland Help File. [cpp] #define TYPE int TYPE **data; int m; // THE NUMBER OF ROWS. int n; // THE NUMBER OF COLUMNS. try { // TEST FOR EXCEPTIONS. data = new TYPE*[m]; // STEP 1: SET UP THE ROWS. for (int j = 0; j < m; j++) data[j] = new TYPE[n]; //...

Go to advanced search