Character stack ADT program
how can I write a program, using ADT that process a text strings,
Code:
void push(char ch); // pushes the character ch onto the stack;
char pop(); // pops and returns the top character;
int isEmpty(); // returns 1 if the stack is empty, 0 otherwise;
int reverseSentence(char str[]); // main function;
ie, if is "ABC D2EF. GHI3J. KLM", then after calling the function becomes "FED CBA. JIHG. MLK". The function should also return 3, indicating that there are 3 sentences.
Can someone spent a little time to help on my question? thk a lot.