I have the header file and member functions definition stored in two separate file already. I don't know how to finish this part in the main file.
In the main()
(i) Ask the user to enter a sentence.
(ii) Use cin.get(ch) to read each character, ch, of the sentence, and then insert ch to a stack (push()).
(iii) After reading the whole sentence and inserting all characters to the stack, print out the sentence backwards by using the member functions of the stack (top() & pop()).
output example
Please enter a sentence: This is an example!
!elpmaxe a si sihT
This is what I have so far in my main file. It doesn't run, I don't know how to store user str input and also linkedStackType is giving me problem: 'undefined reference to 'linkedStackType
#include "linkedStackType.h"
#include <iostream>
using namespace std;
int main()
{
linkedStackType<char> myStack;
const int SIZE = 100;
char ch[SIZE];
cout << "Please enter a sentence: ";
cin.get(ch, SIZE);
return 0;
}