Search:
Type: Posts; User: yellowMonkeyxx
Search:
Search took 0.04 seconds.
-
April 27th, 2010, 10:19 PM
Whenever I sort the contents in the file, I have the sorted numbers at the top, followed by the sorted uppercase words, and finally the sorted lowercase words. My main goal is to have all the sorted...
-
April 27th, 2010, 10:14 PM
The numbers should come first and it shouldn't matter if the word is either upper or lowercase. The sorting criteria I'm using consists of:
heapsort
quicksort
*I will be writing the algorithm for...
-
April 27th, 2010, 09:56 PM
I'm having an issue with sorting words, both upper and lowercase, and numbers in a file in ascending order that contain both upper and lower case words. For an example, words.txt file has contents...
-
April 25th, 2010, 09:07 PM
I'm writing a generic heapsort function that wil sort a group of words in ascending order. Here's what I'm confused about:
Build longer strings from the input strings as you read them, e.g.,...
-
April 21st, 2010, 08:04 PM
If you're talking about "->" I already fixed that unless you are referring to something else?
-
April 21st, 2010, 07:53 PM
Buckets is defined as
vector<list<T> > buckets;
template<class T, class HF>
-
April 21st, 2010, 07:44 PM
I changed my iterators to what you have and I get this error:
"is parsed as a non-type, but instantiation yields
a type"
What I want my iterator(s) to do is traverse bucket so I can check if an...
-
April 21st, 2010, 07:09 PM
I have a template class defined as the following:
template <class T, class HF>
class HashTable
{
private:
vector<list<T> > bucket;
-
April 19th, 2010, 09:14 PM
Which code of mine do you need to see? Do you want to see it for both classes?
-
April 19th, 2010, 09:09 PM
That was a typo, I already fixed that in the main program.
If you want to see the whole program well here it is:
http://faculty.cs.niu.edu/~freedman/340/hw5/hw5.html
-
April 19th, 2010, 08:59 PM
HashTable.h: In member function âbool HashTable<T, HF>::insert(const T&)
[with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, HF = std::basic_string<char,...
-
April 19th, 2010, 08:14 PM
When you have multiple templates that are in different classes, aren't you suppose to give them different names? Like one occurance there is a T and an HF?
-
April 19th, 2010, 07:57 PM
Why did you change the parameter in the operator() from string to HF? I sort of need that to change to an integer so it can be returned. Unless, there is something I'm missing? :[
-
April 19th, 2010, 06:44 PM
I have two classes defined as the following, with each in two header files (content in bold is what I'm having an issue with):
class StringHashKey
{
public:
template<class HF>
-
April 19th, 2010, 10:16 AM
Can someone help further explain what the point of using typedef? I've read that it's suppose to be used for an alias or something, but I don't quite see the point in using it when it does the exact...
-
April 19th, 2010, 03:06 AM
Wow, thanks. I thought it didn't matter when I tried to run it, but it just worked.
-
April 19th, 2010, 02:35 AM
I'm unsure how to write a constructor's heading for a template class
template <class T, class HF>
class myClass
{
private:
-
April 18th, 2010, 04:37 PM
This might help
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
-
April 18th, 2010, 04:13 PM
I'm having trouble writing a makefile with the following items:
mainFile.cpp - the main program which will use the two header files (h1.h and h2.h)
h1.h - header file that simply contains a...
-
March 23rd, 2010, 04:09 PM
Yep, I just figured that out when I looked at the destroy function. I had used a delete when it wasn't necessary. I managed to fix the problem and get the program to work successfully.
Thanks for...
-
March 23rd, 2010, 04:01 PM
Actually, I somewhat figured out the problem. The issue was with the destructor calling a function.
My destructor was calling the function destroy(TNode*) which caused the program to crash when it...
-
March 23rd, 2010, 02:55 PM
RESOLVED
I've been working on a program where I'm suppose to write both a copy constructor and assignment operator. Everything worked out fine when new class objects where created and assigned...
-
March 20th, 2010, 07:39 PM
I'm trying to traverse a binary expression tree using post order traversal method and having an issue doing it recursively using constant type member functions.
If the functions weren't constant,...
-
March 17th, 2010, 10:11 PM
I'm having an issue understanding how to write code for a stack that stores address.
Pop an address off the stack and store the address in the new node's right link. Pop another address off the...
-
March 2nd, 2010, 12:17 AM
I wrote a practice code to better understand how pure and virtual functions work and had an issue of why I need to declare a new object.
#include <iostream>
#include <vector>
using namespace...
|
Click Here to Expand Forum to Full Width
|