Search Results

Showing results 1 to 31 of 31
Search took 0.01 seconds.
Search: Posts Made By: stupidenator ; Forum: C++ and child forums
Forum: C++ Oct 18th, 2006
Replies: 8
Views: 6,177
Posted By stupidenator
I've got my tree printing correctly now, but I am now having a problem writing the code to traverse the tree and record the 1's and 0's to address each character in the leaf nodes. I know this should...
Forum: C++ Oct 18th, 2006
Replies: 8
Views: 6,177
Posted By stupidenator
Thank you, that did help a lot
Forum: C++ Oct 17th, 2006
Replies: 8
Views: 6,177
Posted By stupidenator
I'm fairly confident that I have created the binary tree correctly. Each individual tree has a pointer to the left and right sub trees with the exception of the leaf trees. If I have built a tree...
Forum: C++ Oct 17th, 2006
Replies: 8
Views: 6,177
Posted By stupidenator
I'm pretty sure that my tree is built correctly. I am trying to figure out how to traverse the tree. For example, if my input file consisted of "this is a test", I believe I have built the tree...
Forum: C++ Oct 17th, 2006
Replies: 8
Views: 6,177
Posted By stupidenator
Hello everyone,

I am working on an assignment which has me build a huffman tree. I am fairly confident that I have built my huffman tree correctly, but now I must get the Huffman code for the...
Forum: C++ Sep 16th, 2006
Replies: 2
Views: 1,549
Posted By stupidenator
I tried it and guess what... IT WORKS! Thanks a lot!

Nick
Forum: C++ Sep 16th, 2006
Replies: 2
Views: 1,549
Posted By stupidenator
Hi,

I am in need of some help with a small portion of my program.

I have an input file as follows:

10 9 15 program1
11 1 30 important
12 11 10 junk program
14 15 5 other program
Forum: C++ Mar 9th, 2006
Replies: 4
Views: 12,527
Posted By stupidenator
Thank you for your help. That was it. I had written this function before with other programs and I just did not notice that I had made it a member function. Thank you very much for your help!
Forum: C++ Mar 8th, 2006
Replies: 4
Views: 12,527
Posted By stupidenator
Hi everyone,
I am having a problem while trying to do an operator overload of operator<<

I am getting:
Stack.cpp:96: `std::ostream& Stack::operator<<(std::ostream&, const Stack&)'
must take...
Forum: C++ Mar 5th, 2006
Replies: 5
Views: 1,527
Posted By stupidenator
I believe I figured it out. I think I was improperly destructing my Card object, therefore it was running out of memory because it was not being destructed. I got the code I have to run completely...
Forum: C++ Mar 5th, 2006
Replies: 5
Views: 1,527
Posted By stupidenator
Thank you for the help. I believe I have fixed the problem by making a function instead of using a constructor. I appreciate all of your help. I do, however have an entirely new problem with this...
Forum: C++ Mar 3rd, 2006
Replies: 5
Views: 1,527
Posted By stupidenator
Hi everyone,
I am currently facing a problem with a program that I am writing. It is a computer simulation of the card game War. I am receiving this error

main.cpp:22: invalid conversion from...
Forum: C++ Jan 22nd, 2006
Replies: 4
Views: 1,696
Posted By stupidenator
Thank you for your help. Those were some overlooked errors I made. Thank you for pointing them out. I got the output looking a little more like it should now, but it's still not right. I need to make...
Forum: C++ Jan 21st, 2006
Replies: 4
Views: 1,696
Posted By stupidenator
Thank you for your help. I made that change and I believe I tinkered a little bit more. with it. Now what I get for an output is:

Enter a word: n

is here

after I enter in even just a single...
Forum: C++ Jan 21st, 2006
Replies: 4
Views: 1,696
Posted By stupidenator
Hi everyone,
I am having a problem with a problem I am trying to write. It seems to compile ok, but then when I run it, I get a Segmentation Fault. i am using arrays and I am attempting to return a...
Forum: C++ Nov 11th, 2005
Replies: 3
Views: 1,616
Posted By stupidenator
Thank you,
That did help a lot!
Nick
Forum: C++ Nov 5th, 2005
Replies: 1
Views: 2,917
Posted By stupidenator
Hi everyone,
I am having trouble with a prgram that simulates Conway's Game of Life. I cannot get the program to run past a few generations. I think I am having trouble with the countNeighbors() or...
Forum: C++ Nov 5th, 2005
Replies: 3
Views: 1,616
Posted By stupidenator
Hi everyone,
I am trying to make a function such as
void resetGrid(int grid[][gridSize])
The function needs to input the 2-D array and then set each of the values to zero. I know this should be a...
Forum: C++ Oct 22nd, 2005
Replies: 9
Views: 3,668
Posted By stupidenator
Thanks a lot for your help. I got the program working and got it submitted. I really appreciate you helping me with that.
Nick
Forum: C++ Oct 21st, 2005
Replies: 9
Views: 3,668
Posted By stupidenator
I made the adjustments that you provided. It was coming up ok on a couple of the samples that i ran. But on other ones, it would come up either 30 or 28 days short. I made an adjustment by adding an...
Forum: C++ Oct 21st, 2005
Replies: 9
Views: 3,668
Posted By stupidenator
OK, after taking your advice, I made some revisions to the program. Sometimes it will give me the right answer... sometimes it will be a little off.. and for some, it will give me a negative number!...
Forum: C++ Oct 21st, 2005
Replies: 9
Views: 3,668
Posted By stupidenator
Thanks for the reply. I'm not sure if I will be able to use it like that. The function calcDays() is supposed to return the number of days between the entered date, and january 1, 1850. I also am not...
Forum: C++ Oct 21st, 2005
Replies: 9
Views: 3,668
Posted By stupidenator
I have been working on it... it doesn't seem to work too well though... I have posted the code below.
Nick

int calcDays(int month, int day, int year)
{
int m = 1;
int y = 1850;
int...
Forum: C++ Oct 21st, 2005
Replies: 9
Views: 3,668
Posted By stupidenator
Hi everyone,
I am having a little trouble finishing my programming assignment. I am trying to write a program that inputs two dates and validates them to make sure the input is ok and that the dates...
Forum: C++ Oct 4th, 2005
Replies: 2
Views: 4,330
Posted By stupidenator
Thank you. That worked perfectly. I did not think to do it like that. Thank you very much!
Nick
Forum: C++ Oct 4th, 2005
Replies: 2
Views: 4,330
Posted By stupidenator
Hi everyone,
I am writing a summation program for a programming class I am taking. The assignment's main purpose is to give me practice writing functions. I have gotten the functions down just fine,...
Forum: C++ Sep 27th, 2005
Replies: 4
Views: 3,046
Posted By stupidenator
Thanks for the help! I finally got it working. I was not aware earlier that you could just do somehting like
cin >> int >> char >> int >> char >> int;

Thank you to everyone who tried to help me...
Forum: C++ Sep 27th, 2005
Replies: 4
Views: 3,046
Posted By stupidenator
Sorry, it is in c++ and the date is originally stored as a string. I think I may be on the right track... I think by using the <cctype> library, i can distinguish the numbers from the slashes, but i...
Forum: C++ Sep 27th, 2005
Replies: 4
Views: 3,046
Posted By stupidenator
Hi everyone,
I am trying to write a program for a class but I cannot seem to figure out how I can convert a date in the format mm/dd/yyyy to separate int values. I.E. m+m+d+d+y+y+y+y. I've got the...
Forum: C++ Sep 17th, 2005
Replies: 4
Views: 1,379
Posted By stupidenator
Thank you very much everyone for the help!
Nick
Forum: C++ Sep 16th, 2005
Replies: 4
Views: 1,379
Posted By stupidenator
Hi everyone,
I am just starting to learn to program in c++. I am a little confused on where to start though. Is there anywhere I can download an editor and compiler? Thank you.
Nick
Showing results 1 to 31 of 31

 


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

©2003 - 2009 DaniWeb® LLC