题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1848 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 19:00:21
阅读次数:
75
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1527 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 18:18:17
阅读次数:
60
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1521 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 13:06:06
阅读次数:
56
dp: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; typedef unsigned long long ull; #define pf printf #def ...
分类:
其他好文 时间:
2020-06-06 10:42:55
阅读次数:
57
从linux源码看socket的阻塞和非阻塞 笔者一直觉得如果能知道从应用到框架再到操作系统的每一处代码,是一件Exciting的事情。 大部分高性能网络框架采用的是非阻塞模式。笔者这次就从linux源码的角度来阐述socket阻塞(block)和非阻塞(non_block)的区别。 本文源码均来自 ...
分类:
系统相关 时间:
2020-06-04 13:42:55
阅读次数:
58
在64位的机器上,intptr_t和uintptr_t分别是long int、unsigned long int的别名;在32位的机器上,intptr_t和uintptr_t分别是int、unsigned int的别名。 /* Types for `void *' pointers. */ #if ...
分类:
其他好文 时间:
2020-06-03 23:35:30
阅读次数:
162
#include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; int ReverseInt(int i) { unsigned char ch1, ch2, ch3, c ...
分类:
编程语言 时间:
2020-06-03 20:37:56
阅读次数:
77
一、创建头文件74hc595.h代码如下: #ifndef __74HC595_H_ #define __74HC595_H_ #include <reg52.h> #define uchar unsigned char #define uint unsigned int sbit DIO = P1 ...
分类:
其他好文 时间:
2020-06-03 13:55:43
阅读次数:
43
昨天已经完成了在数据库中创建库和创建表,下面将详细介绍一下,针对穿件完成后的database之后,我们use database(select database切换),然后create table table_name(filed type1,。。。。。) 基础操作,主要是增删改查 -- 1.创建表( ...
分类:
数据库 时间:
2020-06-01 23:30:48
阅读次数:
73
下面是用C写的一个判断汉字的程序: #include<stdio.h> int main(void) { int i; //mr:: str[80]的类型不能写成 char,必须加上 unsigned unsigned char str[80]; puts("input string:"); sca ...
分类:
其他好文 时间:
2020-06-01 20:38:02
阅读次数:
70