Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Problem Statement:

 

In this assignment, you have to write a generic code to sort a dynamic array in ascending order which should work for all (short, int, long, float, double and char) data types.

 

Key points:

 

  • You have to write three template functions in your program which are:
  1. input()
  2. sort()
  3. display()
  • Template function input()  will take two argument: first is template type pointer of dynamic array and other is int type variable will used to save number of values in dynamic array. 

 

  • Template function sort()  will take two arguments: first is template type pointer of dynamic array and other is int type variable will used help to identify number of values in dynamic array what function will sort in ascending order. 

 

  • Template function display()  will take two arguments first is template type pointer of dynamic array and other is int type variable will used for number of iteration to display all values in array.

 

  • In main() function, you are required to create three dynamic arrays of int, float and char type and pass it to functions input(), sort() and display().

Discuss plzzzz

Views: 6994

Attachments:

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

A.O.A
Please help me solution hi send ker do koi

abhi incmplt bani h

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

what does template functions mean???

What we write in public section of our Array class?? guide me?anyone?

salam

ANYONE  solved this assignment?

discuss plzzzzzzzzzzzzzzzzzzzz

one part of the assignment

Attachments:

Asalam-o alikum ...please someone guide

Dear Marha Khan this part of assignment is not right..

Assignment boht assan hai friends.

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service