Skip to content

Commit

Permalink
延时后结束程序
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Jan 15, 2021
1 parent ff4b161 commit f8bc30a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kmeans.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "unipoint.h"


//KMeans类。一次 K-Means 计算对应一个对象
//KMeans 类。一次 K-Means 计算对应一个对象
class KMeans
{
public:
Expand Down
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <chrono>
#include <fstream>
#include <cstring>
#include <thread>

#include "kmeans.h"
#include "unipoint.h"
Expand Down Expand Up @@ -67,5 +68,7 @@ int main(int argc, char* argv[])
fileout.close();
cout << "写入完成" << endl;

this_thread::sleep_for(chrono::milliseconds(5000)); //延时后结束程序

return 0;
}

0 comments on commit f8bc30a

Please sign in to comment.