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 ...
Search found 45 matches
- Sat Jun 21, 2003 2:08 pm
- Forum: C++
- Topic: 2 dimensional dynamic array
- Replies: 7
- Views: 3834
- Sun Mar 02, 2003 5:41 pm
- Forum: C++
- Topic: long long int ? help
- Replies: 3
- Views: 3241
I/O?
You mean I/O? Use cin or cout.
-Suman

-Suman
- Sat Mar 01, 2003 4:35 pm
- Forum: C++
- Topic: long long int ? help
- Replies: 3
- Views: 3241
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 ...
[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 ...
- Fri Feb 14, 2003 5:39 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10437 - Playing With Fraction
- Replies: 9
- Views: 4827
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
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
- Sun Feb 09, 2003 8:06 pm
- Forum: Other words
- Topic: questions about Feb 8,2003 contest
- Replies: 6
- Views: 2972
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 ...
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 ...
- Sun Feb 09, 2003 1:25 pm
- Forum: Other words
- Topic: acm solve sites
- Replies: 51
- Views: 31432
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 ...
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 ...
- Wed Feb 05, 2003 10:13 pm
- Forum: Algorithms
- Topic: Arbitrary Precision Arithmatic : BigInteger Algorithm
- Replies: 9
- Views: 8519
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
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
- Wed Feb 05, 2003 10:05 pm
- Forum: Algorithms
- Topic: Arbitrary Precision Arithmatic : BigInteger Algorithm
- Replies: 9
- Views: 8519
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 ...
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 ...
- Sun Dec 15, 2002 3:35 pm
- Forum: Algorithms
- Topic: A really really good book specialized on graph
- Replies: 5
- Views: 3940
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
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
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 ...
I do agree class makes things ...
- Mon Dec 02, 2002 12:21 am
- Forum: Algorithms
- Topic: A really really good book specialized on graph
- Replies: 5
- Views: 3940
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 ...
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 ...
- Sun Dec 01, 2002 4:46 pm
- Forum: Algorithms
- Topic: Bellman ford algorithm in C
- Replies: 3
- Views: 8719
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 ...
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 ...
Good point
Good Point, I agree again. But then java should have the similar inability like C++, other may argue.
- Suman

- Suman
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
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
- Thu Nov 28, 2002 3:57 pm
- Forum: C++
- Topic: How to specify a dynamic 2-dimension array
- Replies: 2
- Views: 2516
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 ...
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 ...