Search Results

Showing results 1 to 18 of 18
Search took 0.00 seconds.
Search: Posts Made By: Ratte ; Forum: C++ and child forums
Forum: C++ Nov 19th, 2007
Replies: 4
Views: 701
Posted By Ratte
Forum: C++ Nov 19th, 2007
Replies: 4
Views: 701
Posted By Ratte
OK looks like I found a use myself.

I just read the entire file into a hash table and then pass the hash array to a quicksort function to sort it....
Forum: C++ Nov 19th, 2007
Replies: 4
Views: 701
Posted By Ratte
I have a person datafile of many entries. Persons will be stored in a linked list and each of the person amongst other things will have a linked list of items belonging to them.

The object of the...
Forum: C++ Nov 13th, 2007
Replies: 4
Views: 568
Posted By Ratte
Yes, I think he was using a microsoft product. Do you have to have the studio or C++ express will do?

Thank you.
Forum: C++ Nov 13th, 2007
Replies: 4
Views: 568
Posted By Ratte
I overheard a conversation in a class the other day about someone being able to "look" into various classes and data storage types and see what is being stored as you run the program.

I understand...
Forum: C++ Nov 13th, 2007
Replies: 7
Views: 798
Posted By Ratte
Thank you Duoas, you have been very helpful.

I chose not to do it that way initially because I wanted to keep my Graph function nice and clean, but I do see the advantage in doing it that way. I...
Forum: C++ Nov 13th, 2007
Replies: 15
Views: 7,846
Posted By Ratte
I must say I'm surprised that there is no simple solution to this in such a complex language.

Actually, ENTER would work just as well for me, however, I do not understand why, but my program skips...
Forum: C++ Nov 13th, 2007
Replies: 15
Views: 7,846
Posted By Ratte
I've searched all over the place and I cannot seem to find a well working, reliable solution to this that is not platform specific.

Here is what I have:

Main menu of a class (while loop with 0...
Forum: C++ Nov 13th, 2007
Replies: 7
Views: 798
Posted By Ratte
Thanks Duoas, I didn't realize this was possible. I thought the same applied as with local variables.

So it is not possible to return a pointer to the graph then? I would return an array of...
Forum: C++ Nov 13th, 2007
Replies: 7
Views: 798
Posted By Ratte
Before I write this, I realize there are way better ways to accomplish what I am asking, but I am JUST wondering if it is possible to do it the way I am asking.

I have a main function called...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,628
Posted By Ratte
I understand now. Thanks.

Here is my last issue:

the only data member of the Graph is:

SinglyLinkedList<T> array[SIZE];

it does not work if I add const int SIZE right before it. My guess...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,628
Posted By Ratte
Thanks again for your help!

The new way you posted is a bit hard to understand for me. When you use typename, do you actually mean typename, or should I replace it with class?

Also, how do I...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,628
Posted By Ratte
I am getting another error when instantiating a Graph object with an integer.


int numcourses;

Graph <Course, numcourses> graph;


"error- numcourses cannot appear in a...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,628
Posted By Ratte
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,628
Posted By Ratte
I have a template Graph class which uses an adjacency matrix (array of singly linked lists).

I need to be able to initialize the Graph with a size.

I guess it is done this way?

template...
Forum: C++ Oct 14th, 2007
Replies: 3
Views: 1,775
Posted By Ratte
Thank you for your help. This is for a school project, so I have to follow the format given.

Actually, I forgot to mention one thing. I am allowed to check if a line contains PHY in it - then it's...
Forum: C++ Oct 14th, 2007
Replies: 1
Views: 839
Posted By Ratte
I have a template singly linked list function that has a node class:

template <class T>

class Node {

T Data;
Node <T> *Next;

public:
Forum: C++ Oct 14th, 2007
Replies: 3
Views: 1,775
Posted By Ratte
I need to read a text file that contains data of the following type:


John Doe 333222333 01/01/80 M
PHY301 2005 Fall A
PHY401 2005 Fall B
PHY531 2006 Spring A
John Doe 333222333 01/01/80 M...
Showing results 1 to 18 of 18

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC