码迷,mamicode.com
首页 >  
搜索关键字:public void __cdecl    ( 122950个结果
c语言 9-7
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
C# 日期格式化显示
日期显示代码如下: 1 // <summary> 2 /// 日期时间显示改变 3 /// </summary> 4 private void InitDateTimePickerUp() 5 { 6 //开始时间 7 this.dateTimePicker_start.CustomFormat = ...
分类:Windows程序   时间:2021-06-02 10:53:58    阅读次数:0
Must create DependencySource on same Thread as the DependencyObject
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
740. 删除并获得点数(动态规划)
1. 题目 给你一个整数数组 nums ,你可以对它进行一些操作。 每次操作中,选择任意一个 nums[i] ,删除它并获得 nums[i] 的点数。之后,你必须删除 所有 等于 nums[i] - 1 和 nums[i] + 1 的元素。 开始你拥有 0 个点数。返回你能通过这些操作获得的最大点数 ...
分类:其他好文   时间:2021-06-02 10:42:51    阅读次数:0
Spring的AntPathMatcher(路径匹配)
import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import junit.framework.TestCase; public class AntPathMatc ...
分类:编程语言   时间:2021-06-02 10:29:46    阅读次数:0
用户登录信息存session
UserInfoHolder --也可以换成user /** *用户登录 返回角色ABCF,根据角色判断可查看哪个页面 * *///@ACL@PostMapping("/userLogin")public BaseResponse userLogin(@RequestBody User user, ...
分类:其他好文   时间:2021-05-25 18:35:11    阅读次数:0
asp.net core 构造函数依赖注入
依赖注入的好处就是低耦合也可以说是少写了重复的代码 构造函数依赖注入分为三步: 1、先创建一个接口 2、创建一个类,用于实现接口 3、到配置服务类(Startup)的 public void ConfigureServices(IServiceCollection services){ } 方法中注 ...
分类:Web程序   时间:2021-05-25 18:33:22    阅读次数:0
6-20 位密码交验正则
/*** * 校验密码 能匹配的组合为:数字+字母,数字+特殊字符,字母+特殊字符,数字+字母+特殊字符组合,而且不能是纯数字,纯字母,纯特殊字符 */ public static function checkPwd($pwd) { $search = '/^(?![\d]+$)(?![a-zA-Z ...
分类:其他好文   时间:2021-05-25 18:31:40    阅读次数:0
c语言求输入的任一整数的各位数之和
源码: # 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
leetcode 200 岛屿数量
简介 使用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
122950条   上一页 1 ... 49 50 51 52 53 ... 12295 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!