上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 120 下一页
摘要: //Pass thread value type //Model//Util.h #ifndef Util_H #define Util_h #include <ctime> #include <chrono> #include <iostream> #include <sstream> #incl 阅读全文
posted @ 2022-06-20 23:00 FredGrit 阅读(29) 评论(0) 推荐(0)
摘要: #include <limits.h> void Util::typeLimits12() { cout<<"numeric_limits<int32_t>::max()="<<numeric_limits<int32_t>::max()<<endl; cout<<"numeric_limits<i 阅读全文
posted @ 2022-06-18 11:51 FredGrit 阅读(133) 评论(0) 推荐(0)
摘要: //Utill.h #ifndef Util_H #define Util_H #include <chrono> #include <ctime> #include <fstream> #include <iostream> #include "mysql_connection.h" #inclu 阅读全文
posted @ 2022-06-15 13:38 FredGrit 阅读(29) 评论(0) 推荐(0)
摘要: SELECT TABLE_NAME AS `Table`, ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)` FROM information_schema.TABLES WHERE TABLE_SCHEMA = "db 阅读全文
posted @ 2022-06-15 11:00 FredGrit 阅读(53) 评论(0) 推荐(0)
摘要: 1.Install mysqlconnector; sudo apt-get install libmysqlcppconn-dev; 2.Login on mysql and set timeout sudo mysql -u root -p; //3600 seconds SET @@globa 阅读全文
posted @ 2022-06-14 18:16 FredGrit 阅读(64) 评论(0) 推荐(0)
摘要: void Util::bs30() { int arr[]={10,20,30,40,50,60,70,80,90,100}; int key=90; int idx=binarySearch29(arr,0,9,key); if(idx>-1) { cout<<"The key "<<key<<" 阅读全文
posted @ 2022-06-09 11:01 FredGrit 阅读(51) 评论(0) 推荐(0)
摘要: //C list directory and files recursively #include <dirent.h> #include <fstream> #include <string.h> #include <unistd.h> void Util::listdir(const char 阅读全文
posted @ 2022-06-08 15:44 FredGrit 阅读(28) 评论(0) 推荐(0)
摘要: //Model/BookStruct.cpp #include <iostream> using namespace std; struct BookStruct { int BookIndex; long double BookId; char *BookName; char *BookTitle 阅读全文
posted @ 2022-06-03 21:43 FredGrit 阅读(100) 评论(0) 推荐(0)
摘要: 1. sudo -i; 2. cd /var/lib/mysql/;ls -lct; 3.Delete binlog files rm -rf binlog.* 4. ls -lct; 5.Then check the space via df -h; As the above snapshot i 阅读全文
posted @ 2022-05-27 20:53 FredGrit 阅读(62) 评论(0) 推荐(0)
摘要: 1.New notepad++,edit as below,save as exec.bat; .\ConsoleApplication1.exe 100; 2.Powershell run the exec.bat; .\exec.bat; 3.Stop the executed bat prog 阅读全文
posted @ 2022-05-24 17:19 FredGrit 阅读(56) 评论(0) 推荐(0)
上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 120 下一页