First, are you familiar with a stack and its methods?
If you are the process is simple. Based on what you have said,
while(!eof(yourfile))
{
fin >> temp;
stack.push(temp);
}
At the moment I am making the assumption you are familier with stacks and can declare the variables I used. If you don't let me know.
jasweb2002
Junior Poster in Training
56 posts since Sep 2004
Reputation Points: 11
Solved Threads: 2
Skill Endorsements: 0