MUstar

IoT C++ 09/10 - 팀프로젝트V3_(Only Fixed Part)

Sep 10th, 2017
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void data(char input[],int timezone);
  2.  
  3. int main(void)
  4. {
  5.    char input[10];
  6.    while(1){
  7.         system("cls");
  8.         Nation_list();
  9.         cout<<"선택 : ";
  10.         cin>>input;
  11.         if(strcmp(input,"end")==0)break;
  12.         search(input);
  13.     }
  14.    
  15.    return 0;
  16. }
  17.  
  18. void data(char input[],int timezone)
  19. {
  20.    string file=input;
  21.    while(1)
  22.    {
  23.     system("cls");
  24.     ifstream open(file.data());
  25.     if(open.is_open()){
  26.         string line;
  27.         while(getline(open,line)){
  28.             cout<<line<<endl;
  29.         }
  30.     cout<<input<<"시간"<<endl;
  31.     open.close();
  32.    }
  33.       TimeZone(input,timezone);
  34.       Sleep(500);
  35.       if(kbhit()==1) break;
  36.    }
  37. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×