Create a Microsoft Visual Studio C++ WIN32 project. Create it as a Console Application, and an Empty
Question:
1.Create an STL vector object, and store the first 30 Fibonacci numbers in the vector. Display the vector.
2.Create an STL list object and an iterator to go with it. Add 20 random numbers to the list. Display the list using the iterator. Sort the list with the STL sort() method (mylist.sort() for a list object called mylist). Display the list from smallest to largest, and then from largest to smallest using iterators.
3.Write a struct called orderedPair that includes two doubles, x and y. Create an STL list of orderedPair items. Populate the list with 10 pairs of random doubles, where each x and y is in the range 0.0 to 99.9 and has 1 decimal point of accuracy. Using an iterator, display the list in the format (x1, y1),(x2, y2), (x3, y3),.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill