摘要: 有的时候我们需要在自己创建的AOP上面使用接口,比如我使用了Aspect-Injector,Aspect-Injector的自定义切面继承了Attribute,没办法在构造函数注入,这时候就可以用到依赖注入注册后的实例了。 新建一个类,类里面有一个静态的ILifetimeScope来保存注入后的实例 阅读全文
posted @ 2020-05-27 17:49 韦俊宇 阅读(2419) 评论(1) 推荐(1) 编辑
摘要: 1 #include <iostream>; 2 using namespace std; 3 #include <windows.h>; 4 #include <tlhelp32.h>; 5 #include <tchar.h>; 6 7 BOOL CALLBACK EnumWindowsProc 阅读全文
posted @ 2019-01-31 11:24 韦俊宇 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream>; 2 using namespace std; 3 #include <windows.h>; 4 #include <tlhelp32.h>; 5 #include <tchar.h>; 6 7 BOOL CALLBACK EnumWindowsProc 阅读全文
posted @ 2019-01-30 22:58 韦俊宇 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 1 //扫雷 2 #include 3 #include 4 #include 5 #include 6 //格子区域大小(DIVISIONS * DIVISIONS) 7 #define DIVISIONS 20 8 //地雷数 9 #define MINECOUNT 40 10 11 //消息处理 12 LRESULT CALLBACK D... 阅读全文
posted @ 2019-01-28 15:12 韦俊宇 阅读(515) 评论(1) 推荐(0) 编辑
摘要: using WL.Infrastructure.Http; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Web; using Syst... 阅读全文
posted @ 2018-05-15 22:09 韦俊宇 阅读(977) 评论(2) 推荐(3) 编辑
摘要: 1 using System; 2 3 namespace ConsoleAppDemo 4 { 5 class Program 6 { 7 static void Main(string[] args) 8 { 9 DateTime now = DateTime.Now; 10 Console.W 阅读全文
posted @ 2018-05-15 22:07 韦俊宇 阅读(966) 评论(1) 推荐(0) 编辑
摘要: 定义了一个点类point,然后线条类line继承了point类,正方形类Suare继承point类。 阅读全文
posted @ 2016-07-28 10:25 韦俊宇 阅读(10894) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 int main(){ 5 cout>a; 8 bool hehe=false; 9 if (99999999>a; 17 if (9999999912) 51 { 52 cout31) 56 ... 阅读全文
posted @ 2016-07-24 15:11 韦俊宇 阅读(3676) 评论(0) 推荐(0) 编辑
摘要: 题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可可提成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于40万元的部分,可提成3%;60万到 阅读全文
posted @ 2016-07-19 09:31 韦俊宇 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 之前那个是输入一堆数据,找最大那个,这次是更简单的版本,求两个数的最大值。 阅读全文
posted @ 2016-07-15 23:56 韦俊宇 阅读(300) 评论(0) 推荐(0) 编辑