0
#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();
                                          }

Edited by Narue: Added code tags

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by MonsieurPointer
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.