i have sorted data in an array and sent to a file...how do i put this sorted data in a stack.
souphmars
0
Newbie Poster
Recommended Answers
Jump to PostFirst, 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 …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.