```#include#include#include #includeusing namespace std;#define int long longtypedef long long ll;const int N=200;int read(){ int res=0,ch,flag=0; if(... ...
使用struct定义结构体,使用Teacher t = {"", "", ""} 进行初始化操作 /* 结构体 */ #include <iostream> using namespace std; struct Teacher{ char name[20]; int age; double sal ...
分类:
编程语言 时间:
2020-03-30 11:10:03
阅读次数:
93
1.安装mongodb-win32-x86_64-2012plus-4.2.3-signed.msi 2.修改配置文件 3.设置root 账号 及resbank 数据账号 创建root账号 认证root账号 创建 resbank 并创建对应账号 4.使用linsu 登录mongo robo 登录账号 ...
分类:
其他好文 时间:
2020-03-29 19:44:38
阅读次数:
77
题意:http://codeforces.com/problemset/problem/295/D 思路: 可以把图形看成上下两个金字塔(极端情况下长方形),dp出以i的长为底,以j为高的三角形数(长方形),再预处理前缀(以i的长为底,以<=j为高),然后就枚举中心行,上下金字塔数相乘,注意两个图形 ...
分类:
其他好文 时间:
2020-03-29 19:30:37
阅读次数:
76
什么是PowerShell: Windows PowerShell 是一种命令行外壳程序和脚本环境,使命令行用户和脚本编写者可以利用 .NET Framework 的强大功能。PowerShell是命令提示符的更高级版本。 它用于执行诸如 ping 或 copy 之类的外部程序,并自动执行无法从 c ...
网上的很多例子都是不好用的 我这个是我验证过的,大家可以放心用啊 1 // 2 //适合于9999以下的数据转换 3 // 9999 -> 0x270F Max 4 // 5 unsigned int uHex2Bcd_SubFunction(uint16_t sbcd_data) 6 { 7 if ...
分类:
其他好文 时间:
2020-03-27 21:55:40
阅读次数:
73
Problem : Given a 32 bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note: Assume we are dealing with an environmen ...
分类:
其他好文 时间:
2020-03-27 19:48:05
阅读次数:
67
做《C++ Primer》(第5版)253页练习题7.3.4有感,故总结之 1 声明 1.1 变量和函数的声明 常见的声明是声明一个变量或函数,一般在头文件 中声明,例如: 1.2 类的声明 对于一个类,一般是直接在头文件中直接写 ,这称之为类的 定义 ,然后在类体 中又声明或定义了成员变量和成员函 ...
分类:
其他好文 时间:
2020-03-27 09:13:50
阅读次数:
93
1 2 3 4 5 6 类型名称 字节数 取值范围 signed char 1 -128~+127 short int 2 -32768~+32767 int 4 -2147483648~+2147483647 long int 4 -2147483648~+2141483647 long long ...
分类:
其他好文 时间:
2020-03-26 21:15:49
阅读次数:
455
create table t1( id int signed not null auto_increment primary key, num decimal(10,5), name char(10) )engine=innodb default charset=utf8; 多对多 双向的FK() ...
分类:
数据库 时间:
2020-03-26 09:27:25
阅读次数:
82