I want a calender to appear, making it so that the customer can chose the dates.

#include <iostream>
#include <string>
#include <ctime>

using namespace std;

double SubTotal=0.00,Total=0.00, Dis=0.00, DisGCH=0.40, DisConf=0.15, DisSpec=0.05;
    int NoOfDays=0, TelNumber, CreditCN, GoldCN, RPriceSing=175.00, RPriceDoub=250.00, ConfN;
    string LName, FName, Address,Occupancy, DisType,GoldCardHolder,ConfDel, CheckInDate;

int main(){
    cout<< "WELCOME TO SANDY SHORES BEACH HOTEL"<<endl;
    cout<< "Select Check In Date"<<endl;
    cin >>CheckInDate>>endl;
     // current date/time based on current system
   time_t now = time(0);

   // convert now to string form
   char* dt = ctime(&now);

   cout << "The local date and time is: " << dt << endl;

   // convert now to tm struct for UTC
   tm *gmtm = gmtime(&now);
   dt = asctime(gmtm);
   cout << "The UTC date and time is:"<< dt << endl;
   cin>> dt >>endl;

}

For future reference, code snippet is for posting a fully debugged and fully documented piece of code. Discussion/question is what you should have selected.

You're going to have to get Mister Peabody to give you a ride to over a decade ago in the WABAC machine.

But for now, here's a calender written in Turbo C++ using character graphics: https://technodrill.wordpress.com/2012/01/29/a-calendar-program-in-turbo-c/

And that's just the start of the work. Now you have to implement user controls and depending on how much time you have some way to highlight dates that are valid, and more.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.