Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Structure Fraction With Switch

Structure Fraction With Switch

Scheduled Pinned Locked Moved C / C++ / MFC
performance
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EliteBrain
    wrote on last edited by
    #1
    1. Create a structure Fraction (numerator, denominator). Accept details of n fraction and write a menu driven program to perform the following operations. Write separate functions for different options. Use dynamic memory allocation.
      i) Display the largest Fraction.
      ii) Display the smallest Fraction.
      iii) Sort Fraction.
      iv) Display all.
      Note: While accepting fractions, store the fractions in the reduced form.
    L C M 3 Replies Last reply
    0
    • E EliteBrain
      1. Create a structure Fraction (numerator, denominator). Accept details of n fraction and write a menu driven program to perform the following operations. Write separate functions for different options. Use dynamic memory allocation.
        i) Display the largest Fraction.
        ii) Display the smallest Fraction.
        iii) Sort Fraction.
        iv) Display all.
        Note: While accepting fractions, store the fractions in the reduced form.
      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Please do not post your homework assignments here; no one is going to write it for you.

      1 Reply Last reply
      0
      • E EliteBrain
        1. Create a structure Fraction (numerator, denominator). Accept details of n fraction and write a menu driven program to perform the following operations. Write separate functions for different options. Use dynamic memory allocation.
          i) Display the largest Fraction.
          ii) Display the smallest Fraction.
          iii) Sort Fraction.
          iv) Display all.
          Note: While accepting fractions, store the fractions in the reduced form.
        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        Looks interesting. Good luck with your homework.

        Veni, vidi, vici.

        1 Reply Last reply
        0
        • E EliteBrain
          1. Create a structure Fraction (numerator, denominator). Accept details of n fraction and write a menu driven program to perform the following operations. Write separate functions for different options. Use dynamic memory allocation.
            i) Display the largest Fraction.
            ii) Display the smallest Fraction.
            iii) Sort Fraction.
            iv) Display all.
            Note: While accepting fractions, store the fractions in the reduced form.
          M Offline
          M Offline
          Malli_S
          wrote on last edited by
          #4

          To get any kind of help, please post what are all things you've tried or where you stuck with code/logic.

          [Delegates]      [Virtual Desktop]      [Tray Me !]
          -Malli...! :rose:****

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups