1、 #include <stdio.h> void put(char x[], int n) { while(n-- > 0) printf(x); putchar('\n'); } int main(void) { char str[128]; int n; printf("str: "); s ...
分类:
编程语言 时间:
2021-06-02 11:11:52
阅读次数:
0
日期显示代码如下: 1 // <summary> 2 /// 日期时间显示改变 3 /// </summary> 4 private void InitDateTimePickerUp() 5 { 6 //开始时间 7 this.dateTimePicker_start.CustomFormat = ...
WPF 错误:Must create DependencySource on same Thread as the DependencyObject 先看数据模型类吧 public class MessageInfo { public string Message { get; set; } pub ...
分类:
其他好文 时间:
2021-06-02 10:51:43
阅读次数:
0
1. 题目 给你一个整数数组 nums ,你可以对它进行一些操作。 每次操作中,选择任意一个 nums[i] ,删除它并获得 nums[i] 的点数。之后,你必须删除 所有 等于 nums[i] - 1 和 nums[i] + 1 的元素。 开始你拥有 0 个点数。返回你能通过这些操作获得的最大点数 ...
分类:
其他好文 时间:
2021-06-02 10:42:51
阅读次数:
0
import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import junit.framework.TestCase; public class AntPathMatc ...
分类:
编程语言 时间:
2021-06-02 10:29:46
阅读次数:
0
UserInfoHolder --也可以换成user /** *用户登录 返回角色ABCF,根据角色判断可查看哪个页面 * *///@ACL@PostMapping("/userLogin")public BaseResponse userLogin(@RequestBody User user, ...
分类:
其他好文 时间:
2021-05-25 18:35:11
阅读次数:
0
依赖注入的好处就是低耦合也可以说是少写了重复的代码 构造函数依赖注入分为三步: 1、先创建一个接口 2、创建一个类,用于实现接口 3、到配置服务类(Startup)的 public void ConfigureServices(IServiceCollection services){ } 方法中注 ...
分类:
Web程序 时间:
2021-05-25 18:33:22
阅读次数:
0
/*** * 校验密码 能匹配的组合为:数字+字母,数字+特殊字符,字母+特殊字符,数字+字母+特殊字符组合,而且不能是纯数字,纯字母,纯特殊字符 */ public static function checkPwd($pwd) { $search = '/^(?![\d]+$)(?![a-zA-Z ...
分类:
其他好文 时间:
2021-05-25 18:31:40
阅读次数:
0
源码: # include<stdio.h> int main(void){int a,i=0,sum=0;scanf("%d",&a);if(a<0) a=-a;//求负整数的while(a){sum+=(a%10);//sum存各位数之和a/=10;}printf("各位数字之和为:%d\n", ...
分类:
编程语言 时间:
2021-05-25 18:29:36
阅读次数:
0
简介 使用BFS算法 不知道莫名超时了 code class Solution { public: struct point{ int i; int j; point(int i_, int j_){ i = i_; j = j_; } }; void bfs(int i, int j, vecto ...
分类:
其他好文 时间:
2021-05-25 18:29:12
阅读次数:
0