#include<iostream>
#include<fstream>
#include<string>
#include<ctime>
#include<conio.h>
using namespace std;
class log_on{
      public:
               void displaylogtime();
             };
             
void log_on::displaylogtime(){
     char d [9];
     char w [9];
     _strdate(d);
     _strtime(w);
     cout<<"\nThe current time   :"<<w;
     cout<<"\nThe current Date            :"<<d;
     }
     
     class clothes_selector{
           string happy;
           string sick;
           string confused;
           string sexy;
           string grumpy;
           string winter;
           string summer;
           string autom;
           string spring;
           string season;
           public:
                  void Selection();
                  void NewClothes();
                  void Winter();
                  void Summer();
                  void Autom();
                  void Spring();
                  };
                  void clothes_selector::Selection(){
                       ofstream seasonfile;
                       seasonfile.open("season.txt");
                       seasonfile<<"winter";
                       seasonfile<<"summer";
                       seasonfile<<"autom";
                       seasonfile<<"spring";
                       system("cls");
                       cout<<"PLEASE ENTER THE CURRENT SEASON";
                       cin>>season;
                       seasonfile.close();
                       if (season==winter)
                       {
                                          getch();
                                          Winter();
                                          }
                                          else if
                                          
                                          (season==autom){
                                          getch();
                                          Autom();
                                          }
                                          else if
                                          
                                          (season==summer){
                                          getch();
                                          Summer();
                                          }
                                          else if
                                          
                                          (season==spring){
                                          getch();
                                          Spring();
                                          }
                                          else
                                          cout<<"SEASON DOSENT EXIST";
                                          getch();
                                          }
Member Avatar for MonsieurPointer

... and the point of your post is?

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.