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. Managed C++/CLI
  4. i need help please anyone

i need help please anyone

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharpdesigndata-structureshelp
5 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.
  • P Offline
    P Offline
    pete0
    wrote on last edited by
    #1

    USING Visual C++ .Net I want to design a class to represent a day’s bookings in an appointment book. This class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not. the above class should include the following methods: - prompt for and accept the day’s date - initialise all the hours in the day to “free” - repeatedly prompt the user for an hour number - if the hour is “free” mark it as “booked” - otherwise tell the user “already booked” - display the day and its appointments e.g. 20/12/05 9 booked 10 11 booked 12 booked 13 booked 14 15 16 booked 17 thanks in advance. :sigh:

    I P 2 Replies Last reply
    0
    • P pete0

      USING Visual C++ .Net I want to design a class to represent a day’s bookings in an appointment book. This class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not. the above class should include the following methods: - prompt for and accept the day’s date - initialise all the hours in the day to “free” - repeatedly prompt the user for an hour number - if the hour is “free” mark it as “booked” - otherwise tell the user “already booked” - display the day and its appointments e.g. 20/12/05 9 booked 10 11 booked 12 booked 13 booked 14 15 16 booked 17 thanks in advance. :sigh:

      I Offline
      I Offline
      Ingo
      wrote on last edited by
      #2

      Ok, I understood what do you want to do, but where have you been stucked? What is the question / the problem you have? Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!

      N 1 Reply Last reply
      0
      • I Ingo

        Ok, I understood what do you want to do, but where have you been stucked? What is the question / the problem you have? Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!

        N Offline
        N Offline
        Neville Franks
        wrote on last edited by
        #3

        He wants you to write the class for him for his school homework.:omg: Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

        1 Reply Last reply
        0
        • P pete0

          USING Visual C++ .Net I want to design a class to represent a day’s bookings in an appointment book. This class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not. the above class should include the following methods: - prompt for and accept the day’s date - initialise all the hours in the day to “free” - repeatedly prompt the user for an hour number - if the hour is “free” mark it as “booked” - otherwise tell the user “already booked” - display the day and its appointments e.g. 20/12/05 9 booked 10 11 booked 12 booked 13 booked 14 15 16 booked 17 thanks in advance. :sigh:

          P Offline
          P Offline
          pete0
          wrote on last edited by
          #4

          it least give him an idea or two to start with

          U 1 Reply Last reply
          0
          • P pete0

            it least give him an idea or two to start with

            U Offline
            U Offline
            united18
            wrote on last edited by
            #5
            1. prompt for and accept the day’s date cout<<"Enter date"; cin>>date; (but before this u need to create a variable for date - i guess u already know that) 2) - initialise all the hours in the day to “free” u can use a for loop for this. and yes for 'hour' integer variable u need to create an int array. 3)- repeatedly prompt the user for an hour number i don't understand.....repeatedly means what intervals it should follow? 4) - if the hour is “free” mark it as “booked” use the if else construct for this 5)- otherwise tell the user “already booked” same if then used as in 4) 6)- display the day and its appointments in a for loop u need to use cout. I hope that helps u? Regards
            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