在同一个地方摔倒两次之后,决定记录下来这个东西。 问题 在同一个地方摔倒两次之后,决定记录下来这个东西。 问题 1>uafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YA ...
分类:
编程语言 时间:
2019-12-01 00:02:29
阅读次数:
116
类型转换: 在C++中, 如果两种类型相关联, 如果程序需要一种类型的运算对象时,可以用另一种关联类型的对象或值来代替。 也就是说,这两种类型可以互相转换, 即两种类型是关联的。 int ival = 3.541+ 3; 编译器会警告 运算会损失精度。 隐式类型转换: C++不会将两个数直接相加, ...
分类:
编程语言 时间:
2019-11-30 13:59:53
阅读次数:
106
c++如何确定常量类型 2019 除非有理由存储为其他类型。否则将常量存储为int + 如使用特殊的后缀来表示特定的类型 l表示long u表示unsigned int ul表示unsigned long ll表示long long ull表示 unsigned long long 16为地址数将会 ...
分类:
编程语言 时间:
2019-11-30 00:07:49
阅读次数:
76
``` #include /*整形转字符型*/ char * itoa(int value, char *string, int radix) { char tmp[33]; char *tp = tmp; int i; unsigned v; int sign; char *sp; if (rad... ...
分类:
其他好文 时间:
2019-11-29 18:33:22
阅读次数:
139
malloc calloc realloc 都是头文件的函数 函数原型: void malloc(unsigned int num_bytes) void calloc(size_t n, size_t size) void realloc(void ptr, size_t new_Size) 先说 ...
分类:
其他好文 时间:
2019-11-29 13:09:14
阅读次数:
100
#登录数据库mysql -hlocalhost -uroot -p;#修改密码mysqladmin -uroot -pold password new;#显示数据库show databases;#显示数据表show tables;#选择数据库use examples;#创建数据库并设置编码utf-8 ...
分类:
数据库 时间:
2019-11-29 00:32:21
阅读次数:
100
题意: 思路: 先建好整棵树。 遇到+val操作用dfn对区间+val 遇到加新点清空一下该点的点值(这里保证了之后查询的点肯定是清空过的) 差分+树状数组or线段树 1 #define IOS ios_base::sync_with_stdio(0); cin.tie(0); 2 #include ...
分类:
其他好文 时间:
2019-11-28 21:16:02
阅读次数:
92
#include "REG52.H"#define const_time_05s 222#define const_time_1s 444#define const_time_3s 1332#define const_time_6s 2664 #define const_voice_short 40 ...
分类:
其他好文 时间:
2019-11-26 22:21:59
阅读次数:
111
1 #include <stdio.h> 2 #include <string.h> 3 #include "iostream" 4 5 typedef struct { 6 unsigned int dwMsgLen; 7 char ucMsg[0]; //柔性数组(零长数组) C99以上支持 8 ...
分类:
编程语言 时间:
2019-11-25 23:54:30
阅读次数:
87
--由于users_info表创建的时候,添加了外键约束,所以,小伙伴们测试的话,建议先建个角色表roles CREATE TABLE roles( role_id smallint unsigned primary key auto_increment, #角色id role_name varch ...
分类:
数据库 时间:
2019-11-24 09:54:28
阅读次数:
88