D
dogbite
I need help with an understanding and completing a project in C++ which
involves takingm a string of characters Example /*-A+BCDE as an input and
outputting a postfix expression ABC+-D*E/. I have to use a Stack and a Queue.
I have been given the following main function which I can not change.
#include"a:utility.h"
#incude"a:Stack.h"
#include"a:Queue.h"
// prototypes for input , pretopost, output and is operator go here
main()
{ Queue prefixQ, postfixQ;
char answer;
do
{input (prefixQ);
pretopost (prefixQ, postfixQ);
output(postfiQ);
cout<<endl<<"Continue? N for NO:";
cin<<answer;
} while (!(answer=='n' || answer'N'));
}
and what the heck are .h files am i supposed to write or copy some other
functions on the same target directory ?
Also Please be gentle with me i have limited c++ experience.
Confused biginner??? Thanks
involves takingm a string of characters Example /*-A+BCDE as an input and
outputting a postfix expression ABC+-D*E/. I have to use a Stack and a Queue.
I have been given the following main function which I can not change.
#include"a:utility.h"
#incude"a:Stack.h"
#include"a:Queue.h"
// prototypes for input , pretopost, output and is operator go here
main()
{ Queue prefixQ, postfixQ;
char answer;
do
{input (prefixQ);
pretopost (prefixQ, postfixQ);
output(postfiQ);
cout<<endl<<"Continue? N for NO:";
cin<<answer;
} while (!(answer=='n' || answer'N'));
}
and what the heck are .h files am i supposed to write or copy some other
functions on the same target directory ?
Also Please be gentle with me i have limited c++ experience.
Confused biginner??? Thanks