no such luck :(
Type: Posts; User: paint
no such luck :(
I knew that was the problem but I really didn't know how to fix it. tks I will try that.
so you dont have to wade through all the code here are the spots I think the problem lies in.
for(i = 0; i<strlen(ch); ++i)
{
s1.push(ch[i]);
s2.push(ch[i]);
q.enqueue(ch[i]);
}...
ok got past that problem and found I am doing something wrong in building or checking the queue. The stacks work fine the que simply wont come out right here is the revised code. Pls help if you can....
Noone have other suggestions? I still am getting knowhere though have fixed a few other problems I saw coming up.
Main problem with that is S1 is the array for my stack I need to compair S1 to q to get my results.
Thanks for the try but that gave me about 2 pages worth of similar errors to all my functions.
Ok I ve rewritten the code. I got the stacks to work beautifully but got to the queue and hit a snag. I m getting an error that says unresolved external 'charqueue::front2()' refenenced from...
PS I really do appreciate the help this assignment really has me messed up and it's due tomarrow.
Well guys I m working on totally redoing this code. I dont have a lot of choice in this matter it is an assignment and the teacher didn't give us much room to chose our own variables etc. many of the...
Well I cant tell if either is working both ways compile but both also crash when run. The getline gives a warning of compairing signed and unsigned values in the for loop. The crashing is now the...
sorry I will try to be more helpfull in my message title. I looked around a little and hope I learned a bit I changed the code to look like this. will this take a sentence and store it into an array...
I m once again having problems. I need to get a sentence into an array that I can work with I need to check it for being a palindrome. I ve got it all set up and debugged(or did before playing with...
yep changing to public did it. Still got errors but expected them and they are nothing I ve not seen before. Tks for the help.
LOL Thank you now I feel so stupid so obvious. Gah I look for that forever. Tks alot I ll go fix it now.
#include <iostream>
const int maxsize = 50;
class stackchar
{
private: stackchar();
void enqueue(char val);
char front();
void dequeue();
bool isfull();
I m a student at a local college. New to C++. My latest program has me a bit baffled. I wrote the class file, and implimentation file. When I wrote the main I compiled it and got errors that said...