Search Results

Showing results 1 to 40 of 352
Search took 0.02 seconds.
Search: Posts Made By: NinjaLink ; Forum: C++ and child forums
Forum: C++ 6 Hours Ago
Replies: 7
Views: 109
Posted By NinjaLink
How do I test the output of the sample, so I can see what the hash table looks like for the example? They look like header files. Also, thanks, it is definitely more user friendly than other sources.
Forum: C++ 20 Hours Ago
Replies: 7
Views: 109
Posted By NinjaLink
Sorry, I am new to hashing. Is there anything I can do to improve my program?
Forum: C++ 1 Day Ago
Replies: 7
Views: 109
Posted By NinjaLink
I tried to use hashTable, by doing hashTable(); but it says

6 too few arguments to function `void hashTable(int&, char*)'
Forum: C++ 1 Day Ago
Replies: 7
Views: 109
Posted By NinjaLink
hey, i wrote a program to create a hash table using an array of numbers, but I do not know how to display the actual table on my screen. Does anyone know how to display my results? So far, I am able...
Forum: C++ 19 Days Ago
Replies: 2
Views: 263
Posted By NinjaLink
Thanks Jason.

I am currently having a problem. I feel that I did everything right to try to get the numbers in reverse, however, I am only getting the last element in reverse so far and none of...
Forum: C++ 20 Days Ago
Replies: 2
Views: 263
Posted By NinjaLink
Hello, I need help reversing elements in a queue using Recursion. My problem is that when I print out the reverse, it does not show the numbers on the screen. However my program compiles and runs. My...
Forum: C++ 20 Days Ago
Replies: 1
Views: 353
Posted By NinjaLink
I finally figured it out. Solved
Forum: C++ 20 Days Ago
Replies: 1
Views: 353
Posted By NinjaLink
I need help with my print function, so I can print the elements in a queue. The print function, that I have now is the last function in my header file. I tried to do a small simple program to see if...
Forum: C++ 21 Days Ago
Replies: 7
Views: 263
Posted By NinjaLink
Thank you a lot. It worked. I am VERY happy...I can't express how much I am grateful. Mission completed!
Forum: C++ 21 Days Ago
Replies: 7
Views: 263
Posted By NinjaLink
Is there a way I can use a pop back like you did with aDeque.pop_back(); that I can use in my last post using my queue.h



if(aDeque.front() == aDeque.back())
{
aDeque.pop_front(); ...
Forum: C++ 21 Days Ago
Replies: 7
Views: 263
Posted By NinjaLink
I tried to use the format above using my queue class to see if it would work, but it gave the output results....

mom is a palindrome
cat is NOT a palindrome
noon is NOT a palindrome
mouse is...
Forum: C++ 21 Days Ago
Replies: 7
Views: 263
Posted By NinjaLink
Jason, thank you very much sir.

I have a question...If I decide to use my queue.h, will I be able to accomplish the same thing? or is it no way that I can determine a palindrome with what I have?
Forum: C++ 21 Days Ago
Replies: 7
Views: 263
Posted By NinjaLink
I am trying to determine if a word is a palindrome or not using queues, but I am receiving the wrong results. I have tried several things to get it to work using the boolean variable isPalin. Will...
Forum: C++ 21 Days Ago
Replies: 9
Views: 338
Posted By NinjaLink
I have to use just queues unfortunately...This is what I have now, however, it is still giving me the wrong output.



#include <fstream>
#include <string>
#include <sstream>
#include...
Forum: C++ 21 Days Ago
Replies: 9
Views: 338
Posted By NinjaLink
Is there a more simpler task in doing this? I feel like I am doing it a complicated way instead of doing it very simple and basic for some reason.
Forum: C++ 21 Days Ago
Replies: 9
Views: 338
Posted By NinjaLink
The only thing is that I have no clue on what else to do with what I have because I came this far. I'm not very good at programming =/
Forum: C++ 21 Days Ago
Replies: 9
Views: 338
Posted By NinjaLink
This is what I have now. I've been trying different things for hours lol. What does your last post mean? I do not understand. Is there a simple way of doing a palindrome using queues? I feel like it...
Forum: C++ 21 Days Ago
Replies: 9
Views: 338
Posted By NinjaLink
I recently have a thread open, but I feel it is starting to get too long, and the topic is kind of old since I have a new problem now.

What I am trying to accomplish here is determining whether a...
Forum: C++ 21 Days Ago
Replies: 11
Views: 195
Posted By NinjaLink
This is what I have so far with your help. I was never good at using boolean values, but I want to give it a shot. I got the first word correct, but after that, mom should of been a Palindrome! Did I...
Forum: C++ 21 Days Ago
Replies: 11
Views: 195
Posted By NinjaLink
so I shouldn't use counter in the if statement at all? or should I place the counter in the while loop after the if statement? I think the placement of the counter is killing me! lol



while...
Forum: C++ 21 Days Ago
Replies: 11
Views: 195
Posted By NinjaLink
I feel that my problem with my counter is around here. This is what I've been working on:



while (!s.isEmptyQueue())/*s is not empty*/
{
s.deleteQueue();
u.addQueue(word);

...
Forum: C++ 21 Days Ago
Replies: 11
Views: 195
Posted By NinjaLink
I tried to figure out what you meant by breaking out of the while, but I can't. Can you explain further please? Whatever I do, I just can't get it to count right!
Forum: C++ 21 Days Ago
Replies: 11
Views: 195
Posted By NinjaLink
Thank you. I got my output to come up however, I have another problem.

My output is saying

abbaccaccabba is a Palindrome
12332123321 is a Palindrome
123212421 is a Palindrome

when it is...
Forum: C++ 22 Days Ago
Replies: 11
Views: 195
Posted By NinjaLink
Hello

I am trying to determine whether a word is a palindrome or not using queues in my program below. However, I am currently having a problem. When I compile and execute my program, the output...
Forum: C++ 28 Days Ago
Replies: 3
Views: 225
Posted By NinjaLink
Did my above post help? =/
Forum: C++ 28 Days Ago
Replies: 3
Views: 225
Posted By NinjaLink
I am not using a queue class for these program segments. I apologize for any confusion. They are just programming segments made up to help me understand how to do them. On my test tomorrow, I have...
Forum: C++ 28 Days Ago
Replies: 3
Views: 225
Posted By NinjaLink
I need help with the programming segments below, so I can study for them...I showed my effort on trying to do them. However, I don't believe they are right. If someone can assist me with this, I will...
Forum: C++ 30 Days Ago
Replies: 0
Views: 143
Posted By NinjaLink
My question is, how do you calculate the "Completion Time" as I am alittle confused about it. Do I add the service times and the result is the completion times? Thank you to anyone who helps

...
Forum: C++ 34 Days Ago
Replies: 0
Views: 153
Posted By NinjaLink
Hi. What I want to do is convert a postfix expression into a infix expression. I am reading the postfix expression from an input file and I want to print the infix expression to an output file. I...
Forum: C++ Oct 28th, 2009
Replies: 0
Views: 110
Posted By NinjaLink
I need help with my function that is in my stack.h file which converts postfix expression to infix. My main.cpp reads the postfix expression from a file and outputs the expression to an output file....
Forum: C++ Oct 27th, 2009
Replies: 0
Views: 183
Posted By NinjaLink
I need help trying to convert a postfix expression to Infix. I have tried to search books and internet material to help me take on this task but no luck. Below is what I created, but I know it is far...
Forum: C++ Oct 26th, 2009
Replies: 5
Views: 195
Posted By NinjaLink
I don't understand why it doesn't work because I have tried several different ways and spent several hours on doing the IsEqual, operator==, and operator!= functions. Is there any other hints or...
Forum: C++ Oct 26th, 2009
Replies: 5
Views: 195
Posted By NinjaLink
Does this mean that my operator== function works fine and I just need to reorganizae my main.cpp?
Forum: C++ Oct 26th, 2009
Replies: 5
Views: 195
Posted By NinjaLink
I had another thread before this one, but I felt that it was getting too long.

Current problem: My operator== is not working properly in my program. I have done some things in my function, but I...
Forum: C++ Oct 26th, 2009
Replies: 16
Views: 402
Posted By NinjaLink
I apologize. I corrected the information below. I do not know how that other stuff got in that post. Right now, everything compiles and it looks fine except that I do not know how to print out the...
Forum: C++ Oct 26th, 2009
Replies: 1
Views: 218
Posted By NinjaLink
Hello, I need some advice to help me write a program to convert postfix to infix. However, I am having difficulty getting started. I tried to search for more information, but all I got was infix to...
Forum: C++ Oct 26th, 2009
Replies: 16
Views: 402
Posted By NinjaLink
Hey, I finally figured it out even though it took several hours. However, I have one last question. In main.cpp, how do I print out each stack so that it looks like the Expected output below. Thanks!...
Forum: C++ Oct 25th, 2009
Replies: 16
Views: 402
Posted By NinjaLink
Alright I will try to see if I can figure it out. Does everything else look fine in my operator== and operator!=? or does it still needs work. Thanks
Forum: C++ Oct 25th, 2009
Replies: 16
Views: 402
Posted By NinjaLink
Thank you Vernon Dozier.

I was working on the program some more and corrected the issues and started populating my operator== and operator!= to try to get things working. However, I came across...
Forum: C++ Oct 25th, 2009
Replies: 16
Views: 402
Posted By NinjaLink
The reason I asked was because when I made the change:



bool stackType<Type>& operator==(bool stackType<Type>&);
bool stackType<Type>& operator!= (bool stackType<Type>&);


template<class...
Showing results 1 to 40 of 352

 


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

©2003 - 2009 DaniWeb® LLC