Advertisement
MUstar

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

Sep 10th, 2017
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement