2020年12月12日
摘要: memset函数逐个字节赋值的,所以除了0和1这两个数字外,一般不要直接赋值。 memset(数组,赋值(0或1),数组的长度) #include<iostream> using namespace std; int main() { char a[8]; memset(a, '*', 8); fo 阅读全文
posted @ 2020-12-12 16:28 光学 阅读(32) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <string.h> #include <cmath> #include <queue> using namespace std; struct xy{ int x,y; }node,Top; const int dx[4]={1,-1,2,-2 阅读全文
posted @ 2020-12-12 16:06 光学 阅读(49) 评论(0) 推荐(0) 编辑