From dca9f42cc961b16b18a8b0bed696e52bd85f71eb Mon Sep 17 00:00:00 2001 From: 643fea67aa93e810cdda7f81 <643fea67aa93e810cdda7f81@devide> Date: Tue, 30 May 2023 14:26:00 +0000 Subject: [PATCH] Tue May 30 14:26:00 UTC 2023 inscode --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c068c62..23cd334 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ -# Chat GPT Template With Vue +```cpp +#include +#include +using namespace std; -基于 Vue 的 Chat GPT 模板,InsCode 提供了 AI 接口服务,并自动集成在模板中,即刻开始您的 AI 应用。 \ No newline at end of file +inline void solve() { + for (int i = 0; i < 20; ++i)cout << "fffff\n"; + cout << flush; +} +inline void solve2() { + for (int i = 0; i < 20; ++i)cout << "eeeee" << endl; + cout << flush; +} +int main() { + thread t1(solve); + thread t2(solve2); + th1.join(); // 必须将线程join或者detach 等待子线程结束主进程才可以退出 + th2.join(); + cout<<"up is main"; + return 0; +} + +``` \ No newline at end of file -- GitLab