首页 > Windows开发
WPF:解决数据验证ValidationRule与按钮Canexcute联动的问题
想法是这样的, 如果用户输入有误,界面上显示ValidationRule的提示,并且按钮enabled=false(canExcute=fales) 按钮是在输入信息属性改变时刷新Canexcute方法 实际中validRule:RequiredNumberValidRule ValidatesOn ...
分类:Windows开发   时间:2020-07-28 17:40:14    收藏:0  评论:0  赞:0  阅读:101
AcWing 796. 子矩阵的和
AcWing 796. 子矩阵的和 #include <bits/stdc++.h> using namespace std; const int N=1e3+10; int a[N][N],S[N][N]; int main(){ int n,m,q; scanf("%d%d%d",&n,&m,& ...
分类:Windows开发   时间:2020-07-28 15:36:50    收藏:0  评论:0  赞:0  阅读:99
AcWing 797. 差分
AcWing 797. 差分 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],b[N]; void insert(int l,int r,int c){ b[l]+=c; b[r+1]-=c; } ...
分类:Windows开发   时间:2020-07-28 15:36:21    收藏:0  评论:0  赞:0  阅读:59
AcWing 798. 差分矩阵
AcWing 798. 差分矩阵 #include <bits/stdc++.h> using namespace std; const int N=1e3+10; int a[N][N],b[N][N]; void insert(int x1,int y1,int x2,int y2,int c) ...
分类:Windows开发   时间:2020-07-28 15:34:24    收藏:0  评论:0  赞:0  阅读:85
AcWing 799. 最长连续不重复子序列
AcWing 799. 最长连续不重复子序列 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],s[N]; int main(){ int n; cin>>n; for(int i=0;i<n;i++ ...
分类:Windows开发   时间:2020-07-28 15:34:02    收藏:0  评论:0  赞:0  阅读:146
AcWing 801. 二进制中1的个数
AcWing 801. 二进制中1的个数 #include <bits/stdc++.h> using namespace std; int lowbit(int x){ return x&-x; } int main(){ int n; cin>>n; while(n--){ int x,res= ...
分类:Windows开发   时间:2020-07-28 15:32:10    收藏:0  评论:0  赞:0  阅读:79
AcWing 793. 高精度乘法
AcWing 793. 高精度乘法 #include <bits/stdc++.h> using namespace std; vector<int> mul(vector<int> &A,int b){ int t=0; vector<int> C; for(int i=0;i<A.size()| ...
分类:Windows开发   时间:2020-07-28 15:30:00    收藏:0  评论:0  赞:0  阅读:74
win10无线wifi总是掉线断网
一、 1在Windows10桌面右键点击“此电脑”图标,在弹出的右键菜单中选择“属性”菜单项 2接着在打开的系统窗口中点击左侧边栏的“设备管理器”菜单项。 3这时会打开Windows10系统的设备管理器窗口,在窗口中找到“网络适配器”一项。 4点击网络适配器前面的展开按钮,展开折叠菜单后,找到网卡的 ...
分类:Windows开发   时间:2020-07-28 15:16:55    收藏:0  评论:0  赞:0  阅读:109
Win7系统开机黑屏仅有鼠标怎么办【系统天地】
常用电脑的用户应该对于故障并不陌生,总会因为各种问题导致系统无法正常运行,我们只需对症下药就可以轻松解决。近来有用户反馈Win7系统开机黑屏只有鼠标存在,这要如何处理?这个问题通常是系统中毒导致,在修复问题后请对电脑进行杀毒。下面小编就给大家介绍一下Win7系统开机黑屏仅有鼠标的处理方法。详细如下1 ...
分类:Windows开发   时间:2020-07-28 15:04:22    收藏:0  评论:0  赞:0  阅读:101
巧用win32print来控制windows系统打印机并推送打印任务
小爬最近的一个需求是:将windows系统下的打印任务批量有序给到网络打印机。 用户先从公司的OA(B/S模式)系统下 打印指定内容的表单以及表单中的附件内容。这个问题可以这样分解: 1、抓包,得到OA对应的任务接口,然后利用python requests模拟post请求,获取所有的表单的URL并进 ...
分类:Windows开发   时间:2020-07-28 13:26:57    收藏:0  评论:0  赞:0  阅读:168
windows分页符、分节符
分页符和分节符看着相似,其实不太一样 分节符: 设置了分节符以后,可以单独对当前节设置页边距、文字方向、纸张方向、纸张大小、分栏。点击这些设置的下三角按钮,可以选择将设置应用到:当前节、整个文档、光标后的文档 分页符: 当前文档单独设置为一页,分页符前可以输入内容,分页符后输入内容时,已输入内容自动 ...
分类:Windows开发   时间:2020-07-28 13:20:29    收藏:0  评论:0  赞:0  阅读:105
C#计算两个时间年份月份差
//C#计算两个时间年份月份差 DateTime dt1 = Convert.ToDateTime("2008-8-8"); DateTime dt2 = System.DateTime.Now; int Year = dt2.Year - dt1.Year; int Month = (dt2.Ye ...
分类:Windows开发   时间:2020-07-28 13:18:17    收藏:0  评论:0  赞:0  阅读:92
AcWing 788. 逆序对的数量
AcWing 788. 逆序对的数量 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; int q[N],tmp[N]; LL merge_sort(int l,int r) ...
分类:Windows开发   时间:2020-07-28 13:11:44    收藏:0  评论:0  赞:0  阅读:81
AcWing 790. 数的三次方根
AcWing 790. 数的三次方根 #include <bits/stdc++.h> using namespace std; int main(){ double n,mid; scanf("%lf",&n); double l=-1e6-10,r=1e6+10; while(r-l>1e-8) ...
分类:Windows开发   时间:2020-07-28 13:11:05    收藏:0  评论:0  赞:0  阅读:93
AcWing 791. 高精度加法
AcWing 791. 高精度加法 #include <bits/stdc++.h> using namespace std; vector<int> add(vector<int> &A,vector<int> &B){ vector<int> C; int t=0; for(int i=0;i< ...
分类:Windows开发   时间:2020-07-28 13:10:18    收藏:0  评论:0  赞:0  阅读:78
AcWing 792. 高精度减法
AcWing 792. 高精度减法 #include <bits/stdc++.h> using namespace std; bool cmp(vector<int> &A,vector<int> &B){ if(A.size()!=B.size()) return A.size()>B.size ...
分类:Windows开发   时间:2020-07-28 13:09:13    收藏:0  评论:0  赞:0  阅读:78
AcWing 794. 高精度除法
AcWing 794. 高精度除法 #include <bits/stdc++.h> using namespace std; vector<int> div(vector<int> &A,int b,int &r){ vector<int> C; for(int i=A.size()-1;i>=0 ...
分类:Windows开发   时间:2020-07-28 13:08:48    收藏:0  评论:0  赞:0  阅读:81
AcWing 795. 前缀和
AcWing 795. 前缀和 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int a[N],S[N]; int main(){ int n,m; scanf("%d%d",&n,&m); for(int i=1 ...
分类:Windows开发   时间:2020-07-28 13:08:31    收藏:0  评论:0  赞:0  阅读:63
Kafka基础(四):Kafka API 实战
1 环境准备 1)启动 zk 和 kafka 集群,在 kafka 集群中打开一个消费者 [atguigu@hadoop102 kafka]$ bin/kafka-console-consumer.sh --zookeeper hadoop102:2181 --topic first 2)导入 po ...
分类:Windows开发   时间:2020-07-28 11:06:44    收藏:0  评论:0  赞:0  阅读:77
C# typeof和dictionary字典、MethodInfo、
C# typeof() 和 GetType()区是什么? 1、typeof(x)中的x,必须是具体的类名、类型名称等,不可以是变量名称。 2、GetType()方法继承自Object,所以C#中任何对象都具有GetType()方法,它的作用和typeof()相同,返回Type类型的当前对象的类型。 ...
分类:Windows开发   时间:2020-07-28 10:58:18    收藏:0  评论:0  赞:0  阅读:89
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!