06 2022 档案

摘要://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 阅读(25) 评论(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 阅读(127) 评论(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 阅读(21) 评论(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 阅读(44) 评论(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 阅读(59) 评论(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 阅读(45) 评论(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 阅读(19) 评论(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 阅读(95) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示