« first day (1729 days earlier)      last day (699 days later) » 

12:57 AM
Okay, so I'm a beginner in C++ and I'm trying to use Mark Allen Weis's QuadraticHash template (which is found here users.cis.fiu.edu/~weiss/dsaa_c++/code/QuadraticProbing.h) to create a Hash Table so I can use in my program. However, I keep getting an error with declaring the object file in my program's .h file. I've tried doing QuadraticHashTable <const char*> hashTable(const char*, int); but this creates a function and not a hash Table named hashTable.
I've been stuck on here for more than 4 hours (no exaggeration). I've been looking hard online to find a solution but I can't seem to find anything helpful. I know all of you people here are very very very good with C++ and are experienced, so if someone helps me with this minor syntax problem, I would really really appreciate it.
In my .cpp file, this is how I initialize the hashTable:
`const char notFound[12] = {'n','o','t','f','o','u','n','d'};`
`QuadraticHashTable <const char*> hashTable(notFound, tableSize);`
 
3 messages moved from Lounge<C++>
 
 
20 hours later…
8:55 PM
OK so anyone here know why the heck using Tor and at the same time normal browser can reveal your anonymity?
Any ideas?
 
2 messages moved from Lounge<C++>
 
9:32 PM
Hi! Why does this line gives a multi-charachter charachter constant error?
strcpy(sym, (char[2]) { (char) x + '49', '\0' })
 
2 messages moved from Lounge<C++>
 
 
1 hour later…
10:39 PM
#include <iostream>
#include <string>
using namespace std;
struct L
{
int data ;
L*next;

};
void addFirst(L*head,int d)
{

head->data = d;
head->next = NULL;

}
void addmore(L*head,int d)
{
if (head != NULL)
{
L * tail = new L;
tail->data = d;
head->next = tail;
tail->next = tail->next;

}


}
void display(L*head){
L* current = head;
while(current != NULL)
{
cout << current->data << "--";
current = current->next;

}

}
int main()
{
string s ;
L* head = new L;
int data;
while(s != "q")
{
cout <<"selection" <<endl;
 
1 message moved from Lounge<C++>
 
10:50 PM
void addmore(L*head,int d)
{
if (head != NULL)
{
L * tail = new L;
tail->data = d;
head->next = tail;
tail = tail->next;
// tail->next = tail;

}


}
 
1 message moved from Lounge<C++>
 

« first day (1729 days earlier)      last day (699 days later) »