chAnged the code to this
for (j=0;j<10;j++)
{
if (curr1>TopTen[j])
{
...
Type: Posts; User: kopros
chAnged the code to this
for (j=0;j<10;j++)
{
if (curr1>TopTen[j])
{
...
The data are stored in curr1 each time:
I use this code but somethings going wrong can you find what?
for (j=0;j<10;j++){
if (curr1>TopTen[j])
...
Hi , Pleaze Help..
I insert various values and I have an array[10]. Give me an idea of how to store in that array the ten biggest values that I have entered. I insert 1000 values let's say.(P.S....
Thanks a lot friend you are the greatest... Any idea of how to sort the hash table by total points?
qsort? mergesort?
Im new in c. Sorry if my question look stupid...
int hash_insert (char *key,int key_value)
{
listNode *newptr,*curr,*ptr;
int pos;
pos = hash(key);
/* make sure it's not already in the hash table */
curr = HashTable[pos];...
hI I use these functions for hashing ..
int hash(char *key)
{
unsigned int hash_val = 0;
I fixed the prob you mentioned but My serious problem is with hashing .Thnx for the notice anyway
thanx a lot Im now having some problems with hashing.When Im tryiing to find a code t seems that I have saved in my hash table only the 1st line of my file.Any suggestions? Thnx alot for any help...
You're right indeed. Thnx a lot for the time present
Thanx for help but my prob. is located in typedef. Plz read again my problem and run the code to see what im saying
so any sugestion of what to do to fix it? I hope you understood the prob..
Hi , I have a problem with this code in this "typedef"
typedef struct {
char codename[120];
int money;
int point;
}item2;
if I remove the "int point;" the code works ok. When I...
ok SlyMaelstrom I never asked from someone to do the job for me, I just asked from where should I begin ... thanks alot sl4nted for the advice.I just wanted to ask something . I 'll store the data...
The problem is
A super market has 100000 clients. Each client has a codename (ex. ABC123456789 or DE5429GH139R). Each client earns points for every visit to the Super Market depending on the money...