|
|
Up |
|
|
  |
Author: puneet vyaspuneet vyas
Date: Mar 4, 2008 23:39
data structure design
we have to design the data structure for a sequence database( a
sequence database is on which contains sequences of item sets and a
typical sequence database contains following enteries,sequence
database consits of sequence of transaction
like T1 T2 T3,where each transaction consists of item set:
{ex : sequence database}
CID(sequence id) sequences
1 <{a,b},(c,d},{d}>
2 <{b} ,{a,b,c}>
3 <{a,b},{b,c,d}>
|
| Show full article (1.57Kb) |
|
| |
no comments
|
|
  |
Author: RahulRahul
Date: Mar 4, 2008 23:33
Hi,
I planning to replace the switch-case with an array of function
pointers, the index for the array would be the case integers. Each
case block would be implemented as a seperate function. It works fine
when all the functions have the exact signature like the return types
and formal input parameters.
In my case, some functions accept a different number of arguements.
Hence i can't have the array of different function pointers, is there
any alternative or work around to get it done by using the same
concept of invoking each case via function pointers?
Thanks in advance ! ! !
|
| |
|
| |
3 Comments |
|
  |
|
|
  |
Author: Drini07Drini07
Date: Mar 4, 2008 19:41
$$MAKE LOTS OF QUICK CASH THE EASY WAY$$
Dear Internet User,
Good day, This article I've written is all about the fact
where I earned an ASTOUNDING amount of money in less than
a month and I've decided to share or reveal the secrets
behind making big bucks in the Mail Order Business.
So all money seekers, read this carefully.
=========================================
**READING THIS COULD CHANGE YOUR LIFE!**
I found this on a bulletin board like this one and decided
to try it. A little while back, I was browsing through
several newsgroups, just like you are now, and came across
an article similar to this that...
|
| Show full article (11.60Kb) |
|
no comments
|
|
  |
Author: Drini07Drini07
Date: Mar 4, 2008 19:40
$$MAKE LOTS OF QUICK CASH THE EASY WAY$$
Dear Internet User,
Good day, This article I've written is all about the fact
where I earned an ASTOUNDING amount of money in less than
a month and I've decided to share or reveal the secrets
behind making big bucks in the Mail Order Business.
So all money seekers, read this carefully.
=========================================
**READING THIS COULD CHANGE YOUR LIFE!**
I found this on a bulletin board like this one and decided
to try it. A little while back, I was browsing through
several newsgroups, just like you are now, and came across
an article similar to this that...
|
| Show full article (11.60Kb) |
|
no comments
|
|
  |
Author: j_depp_99j_depp_99
Date: Mar 4, 2008 19:14
My program is required to build a binary search tree using integers
inputted from a file. It also searches for items and counts the nodes
accessed in each search. Also it needs to calculate the average number
of comparisons per search. I am not sure where to insert the counts
because it seems I am getting the wrong count. Here is my retrieve
function:
[code]
|
| Show full article (1.18Kb) |
|
2 Comments |
|
  |
Author: SlainSlain
Date: Mar 4, 2008 18:34
I am creating an array of char pointers.
char *str[2];
str[1]= "ma";
How ever the compiler gives me the following error. Any suggestions?
error: expected constructor, destructor, or type conversion before '='
token
error: expected `,' or `;' before '=' token
|
| |
|
16 Comments |
|
  |
Author: pauldepsteinpauldepstein
Date: Mar 4, 2008 18:26
Class A has two constructors A( someclass& asomeclassvar,
someotherclass& asomeotherclassvar) and also A(someclass&
asomeclassvar, someotherclass& asomeotherclassvar, yetanotherclass&
ayetanotherclassvar) Get and Set methods are available for the
parameters from someclass, someotherclass and yetanother class.
Sometimes these Get and Set Methods are accessed from a base
class
I want to write code like:
A* NewPointerToClass = new(PreviouslyDefinedPointerToMyClass ->
Getasomeclassvar(), PreviouslyDefinedPointerToMyClass-
>Getsomeotherclassvar ..);
My problem is that I don't know which of the two possible constructors
is available via PreviouslyDefinedPointerToMyClass
I only want to call a Get method if it corresponds to a variable
that's present in the constructor.
So it seems like I need to know how to say, in c++
if(the thing being pointed to has been defined using such and such a
constructor) do...
|
| Show full article (1.17Kb) |
|
2 Comments |
|
  |
Author: STL-BOOSTSTL-BOOST
Date: Mar 4, 2008 16:42
Hi,all. I hanve a class T, and T has a member fuanction func(int a,
int b), In vector>, how can I use
for_each, this does not compiled:
for_each(v.begin(), v.end(), bind(&T::func, _1)(a, b));
|
| |
|
1 Comment |
|
  |
|
|
  |
|
|
|
|
|
|
|