O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

19.3 (Merging Ordered-List Objects) Write a program that merges two ordered-list objects of integers into a single ordered-list object of integers. Method Merge of class ListMerge should receive references to each of the list objects to be merged and should return a reference to the merged-list object.

19.4 (Reversing a Line of Text with a Stack) Write a program that inputs a line of text and uses a stack object to display the line reversed.

19.5 (Palindromes) Write a program that uses a stack to determine whether a string is a palindrome (i.e., the string is spelled identically backward and forward). The program should ignore capitalization, spaces and punctuation.

19.6 (Evaluating Expressions with a Stack) Stacks are used by compilers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required