上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 引入的头文件io_utils/time_utils 文件字符个数 #include<stdio.h> #include<locale.h> #include<wchar.h> #include"../include/io_utils.h" #define ERROR_ILLEGAL_FILENAME 阅读全文
posted @ 2021-06-28 20:25 放飞梦想C 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 头文件 #pragma once #if defined(_WIN32) #include<sys/timeb.h> #if defined(__UNIX__)||defined(__APPLE__) #include<time.h> #endif typedef long long long_ti 阅读全文
posted @ 2021-06-28 20:23 放飞梦想C 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 线程安全问题 #include <stdio.h> #include <tinycthread.h> #include <io_utils.h> int count = 0; int Counter(void*arg) { for(int i = 0;i<100000;i++) { count++; 阅读全文
posted @ 2021-06-28 20:03 放飞梦想C 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Σ(っ °Д °;)っ #include<iostream> struct Entity { int x, y; int* GetPtr() { return &x; } /*Entity* GetPtr() { return this; }*/ }; int main() { Entity e = 阅读全文
posted @ 2021-06-17 15:54 放飞梦想C 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<chrono> struct Timer { std::chrono::time_point<std::chrono::steady_clock>start, end; std::chrono::duration<float>duration; 阅读全文
posted @ 2021-06-17 15:07 放飞梦想C 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<chrono> struct Timer { std::chrono::time_point<std::chrono::steady_clock>start, end; std::chrono::duration<float>duration; 阅读全文
posted @ 2021-06-16 20:26 放飞梦想C 阅读(76) 评论(0) 推荐(0) 编辑
摘要: C++的stdvector使用优化 #include<iostream> #include<vector> using namespace std; class Vectex { private: int x, y, z; public: Vectex(int x,int y,int z) : x( 阅读全文
posted @ 2021-06-16 18:04 放飞梦想C 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 例子 #include<iostream> int main() { char* buffer = new char[10];//创建char类型的指针数组 memset(buffer, 0, 10); //初始化为0 char** ptr = &buffer; //创建二重指针并指向一个指针 st 阅读全文
posted @ 2021-06-13 18:54 放飞梦想C 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 数据类型是定义列中可以存储什么数据以及该数据实际怎样存储的基本规则。数据类型用于以下目的。 数据类型允许限制可存储在列中的数据。例如,数值数据类型列只能接受数值。 数据类型允许在内部更有效地存储数据。可以用一种比文本串更简洁的格式存储数值和日期时间值。 数据类型允许变换排序顺序。如果所有数据都作为串 阅读全文
posted @ 2020-06-22 00:21 放飞梦想C 阅读(211) 评论(2) 推荐(0) 编辑
摘要: 备份数据 由于MySQL数据库是基于磁盘的文件,普通的备份系统和例程就能备份MySQL的数据。但是,由于这些文件总是处于打开和使用状态,普通的文件副本备份不一定总是有效。下面列出这个问题的可能解决方案。 使用命令行实用程序mysqldump转储所有数据库内容到某个外部文件。在进行常规备份前这个实用程 阅读全文
posted @ 2020-06-21 23:54 放飞梦想C 阅读(499) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页