Search Results

Showing results 1 to 40 of 47
Search took 0.01 seconds.
Search: Posts Made By: teppuus
Forum: C++ Jan 31st, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Well, I never was able to 100% walk backwards through my double-linked list, but I do appreciate all your help. I submitted my code as is and my professor sent me his solution. I don't want to post...
Forum: C++ Jan 25th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
you know, shouldn't walking backwards in a double linked list be just as easy as walking forward?? arrgh
Forum: C++ Jan 25th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Well, I use pWalker in the Count_Words() function to traverse the linked list forward (and count the number of words in the lists). So at the end of that function, pWalker is Null because that is...
Forum: C++ Jan 25th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Ok, when I traverse the list forward, I stop when pWalker = NULL. The last line of code that does this is: pWalker = pWalker->next . pWalker->next is null, so pWalker is set to NULL. So, in order...
Forum: C++ Jan 25th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
hmm, it should actually display the word after it prints out the number of words from that list. Well, I will have to keep playing with it tomorrow. Thanks again.
Forum: C++ Jan 25th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Hi Ancient Dragon...I appreciate your help. I have to run now, but I will check back in tomorrow and continue working on this. Thank you!
Forum: C++ Jan 24th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Hmm, I will have to re-read my material then. I thought you had to allocate memory. :-(
Forum: C++ Jan 24th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
When I add cout << "test" to see where the crash occurs, it occurs during this line:

cout << pCurrent->newWord << " ";
Forum: C++ Jan 24th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Oh ok.... (and letter[] is defined globally).
Forum: C++ Jan 24th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Ok, I was trying that, but still couldn't get it right. The head pointer is letter[count].

Here is what I tried that causes a crash:


word *pCurrent;

pCurrent = pWalker;

...
Forum: C++ Jan 24th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Ok, would I just need to make a new pointer like:

word *pCurrent;

?
Forum: C++ Jan 24th, 2008
Replies: 19
Views: 1,724
Posted By teppuus
Hello, I am having some trouble traversing backwards through a double linked list. Basically this program pulls words from a text file (I have attached the file I am using), corrects the words and...
Forum: C++ Jan 21st, 2008
Replies: 3
Views: 565
Posted By teppuus
Hello Duoas....so I took your advice and played around some with my code, and it seems to be working better now (at least the words are added to the top of the linked list). The program is suppose to...
Forum: C++ Jan 21st, 2008
Replies: 3
Views: 565
Posted By teppuus
Thank you, it does help. I will try the changes tonight after work. As for the array of linked lists....yeah, that is what we are required to do.

Hope your headache feels better soon!

Thanks...
Forum: C++ Jan 20th, 2008
Replies: 3
Views: 565
Posted By teppuus
Hello, I am having trouble creating a double linked list within an array of pointers. Right now actually, I am just trying to make a linked list. Line 267 is where I get a complier error. I...
Forum: C++ Jan 20th, 2008
Replies: 2
Views: 1,130
Posted By teppuus
Thank you! I will try that.

Terri
Forum: C++ Jan 20th, 2008
Replies: 2
Views: 1,130
Posted By teppuus
Hello,

I wanted to post some code with line numbers and can't figure out how to do this. I searched the FAQ, and tried [list=1], but it didn't turn out right. I would hate to manually insert line...
Forum: IT Professionals' Lounge Jan 17th, 2008
Replies: 1
Views: 832
Posted By teppuus
Currently I am a CS student but am thinking about switching to CIS. Honestly, I don't want to be a programmer. I am grateful to learn the concepts, and (sometimes) enjoy the challenge. But I can't...
Forum: C++ Jan 13th, 2008
Replies: 5
Views: 3,093
Posted By teppuus
Ok, thank you! I tried this code to initialize all 26 pointers, and then printed them to the screen to check. They are printed out as '0'. I did have change the current->head = NULL to current = NULL...
Forum: C++ Jan 12th, 2008
Replies: 5
Views: 3,093
Posted By teppuus
Hmmm, I wonder if I could use the first block of code that initializes one linked list as one function, and then call that function within a for loop that runs through the 26 pointers. Hmmm.
Forum: C++ Jan 12th, 2008
Replies: 5
Views: 3,093
Posted By teppuus
Ok, so I need to initialize the double linked list. This is the code I wrote so far that worked:


wordList* Initialize_Lists()
{

// function to create list

char ch;
Forum: C++ Jan 12th, 2008
Replies: 5
Views: 3,093
Posted By teppuus
Hello, I have to create a double linked list array of pointers for the alphabet (one pointer per letter).

Ok, so I tried starting by creating a double linked list:


struct word{
string...
Forum: Geeks' Lounge Nov 10th, 2007
Replies: 34
Views: 3,232
Posted By teppuus
I don't know....I lived in Germany the past 3 years (in Dresden) and it was mildly interesting to the people there. Dresden did have an American football team, but soccer was just so much more loved....
Forum: C++ Oct 21st, 2007
Replies: 2
Views: 1,804
Posted By teppuus
Thanks Ancient Dragon,

(I will number my lines from now on!)...

I changed the pointer to be passed as a reference. That definitely helped read in the data from the file. My output still isn't...
Forum: C++ Oct 21st, 2007
Replies: 3
Views: 928
Posted By teppuus
Hi Wenny86....lots of ppl here are very helpful, but only if you show effort to solve your problem first. Try writing out your algorithms and some code and posting specific problems, and ppl usually...
Forum: C++ Oct 20th, 2007
Replies: 2
Views: 1,804
Posted By teppuus
Hello,

I am trying to call two functions: one that pulls data from a file and stores into a linked list, and one that displays this data to the screen. I pulled my code out of the functions and...
Forum: C++ Oct 17th, 2007
Replies: 3
Views: 658
Posted By teppuus
Thank you. That did the trick.

Terri
Forum: C++ Oct 17th, 2007
Replies: 3
Views: 658
Posted By teppuus
Hello,

I would like to be able to declare a filename as a global constant (so I can change the input file easily), which seems to be a simple thing to do, but I can't seem to get it to work.

I...
Forum: C++ Oct 14th, 2007
Replies: 6
Views: 835
Posted By teppuus
Ok, thank you.
Forum: C++ Oct 14th, 2007
Replies: 6
Views: 835
Posted By teppuus
Hello,

The uppercase 'A' to 'F' relate to the seats per row (there are 6 seats per row).

I tried placing & before row....the PLANE.BIN file is now created....I just have to get the program to...
Forum: C++ Oct 14th, 2007
Replies: 6
Views: 835
Posted By teppuus
Hello,

Well, I wasn't defining "seats" again as a local variable. I was just setting the size of the array (I thought that would be ok since I left out the 'int' before the variable inside the...
Forum: C++ Oct 14th, 2007
Replies: 6
Views: 835
Posted By teppuus
Hello, I am trying to write data to a binary file. The function runs (the cout << "TEST" shows me that my loop is running the correct amount of times), but after the program comes to the end, it...
Forum: C++ Sep 25th, 2007
Replies: 2
Views: 2,627
Posted By teppuus
Thank you. That did the trick. I didn't know that all components in a string are characters, even if they are numbers.....which makes since. That helped me solve a problem I was having during error...
Forum: C++ Sep 25th, 2007
Replies: 2
Views: 2,627
Posted By teppuus
Ok, I know you aren't suppose to (or can't) do comparions on arrays such as, if (x < y), when both x and y are single dimensional arrays. But what about if you have a string and want to compare one...
Forum: C++ Sep 25th, 2007
Replies: 5
Views: 1,229
Posted By teppuus
Loop is working now. I had to move the do{ after the very first cin >> studentId;. The program needed to calculate the length of the studentId each time a new studentId was entered in. I still have...
Forum: C++ Sep 25th, 2007
Replies: 5
Views: 1,229
Posted By teppuus
Well, your tip is working. I am finding problems I didn't know existed. I will post again once I figure it out in case someone is interested. Thanks again.
Forum: C++ Sep 25th, 2007
Replies: 5
Views: 1,229
Posted By teppuus
Ok, thank you....I am trying that now.
Forum: C++ Sep 25th, 2007
Replies: 13
Views: 1,007
Posted By teppuus
How's it going NicAuf? Were you able to figure out your code? Salem wants you to show all your code (if you are having problem with the die rolling, then you have more code than you are showing)....
Forum: C++ Sep 25th, 2007
Replies: 5
Views: 1,229
Posted By teppuus
Hello, I am having problem with my do...while loop. It asks for student identifier twice before proceeding. I tried moving the "do" after the program prompts the user for his choice of id, but I...
Forum: C++ Sep 24th, 2007
Replies: 13
Views: 1,007
Posted By teppuus
I ran that example program on that webpage, and it did change the random number (after running the program twice). It seems you have to change the srand value from srand ( time(NULL) ); to srand (1);...
Showing results 1 to 40 of 47

 


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

©2003 - 2009 DaniWeb® LLC