weixin_30394669
码龄7年
  • 717,666
    被访问
  • 暂无
    原创
  • 1,222,529
    排名
  • 88
    粉丝
关注
提问 私信
  • 加入CSDN时间: 2015-08-06
博客简介:

weixin_30394669的博客

查看详细资料
个人成就
  • 获得137次点赞
  • 内容获得0次评论
  • 获得876次收藏
创作历程
  • 781篇
    2019年
  • 800篇
    2018年
  • 715篇
    2017年
  • 502篇
    2016年
  • 392篇
    2015年
  • 286篇
    2014年
  • 278篇
    2013年
  • 223篇
    2012年
  • 160篇
    2011年
  • 125篇
    2010年
  • 110篇
    2009年
  • 83篇
    2008年
  • 45篇
    2007年
  • 39篇
    2006年
  • 25篇
    2005年
  • 11篇
    2004年
成就勋章
  • 最近
  • 文章
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Html+css实现水晶图片动态效果

网上学的一个小玩意,具体是放十二张图片,然后变成一个动态效果。可以在网站中打开,也可以在窗体中打开网站例子分享:链接:https://pan.baidu.com/s/1ewMdwEu3wAvH7O8cF_e3Hw 提取码:m3jh窗体例子分享:链接:https://pan.baidu.com/s/1M9PyeIl5JY53Jlr9...
转载
发布博客 2019.09.12 ·
1166 阅读 ·
0 点赞 ·
0 评论

netty-3.客户端与服务端通信

(原)第三篇,客户端与服务端通信以下例子逻辑:如果客户端连上服务端,服务端控制台就显示,XXX个客户端地址连接上线。第一个客户端连接成功后,客户端控制台不显示信息,再有其它客户端再连接上线,则其它客户端显示:【服务器】 - XXX 已加入当客户端发送一条消息给服务端,其它客户端控制台都能收到此消息【服务端】 - xxx msg,同时自己也会收到一条消息,【服务端】 -...
转载
发布博客 2019.07.29 ·
174 阅读 ·
0 点赞 ·
0 评论

netty-4.客户端与服务端心跳

(原)第四篇,客户端与服务端心跳心跳事件有三种,读空闲,写空闲,读写空闲,定义在了IdleState枚举类中,分别为READER_IDLE,WRITER_IDLE,ALL_IDLE服务端:main方法与之前的例子差不多,只不过多了加了一个日志,其中,handler是用于处理bossGroup的handler,而childHandler是用于处理workerG...
转载
发布博客 2019.07.29 ·
253 阅读 ·
0 点赞 ·
0 评论

netty-2.客户端与服务端互发消息

(原)第二篇,客户端与服务端互发消息与第一篇的例子类似,这里服务端需要三个类,客户端也需要三个类。服务端关键代码如下:MyServer与上一个例子中的TestServer 差多,这里只列举不同的地方。通过MyServerHandler能看到,服务端收到消息后会向客户端发送一个UUID。客户端代码如下:这里能看到与服务端最明显的区别就是只有一个...
转载
发布博客 2019.07.29 ·
404 阅读 ·
0 点赞 ·
0 评论

netty-1.从一个最简单的例子开始

(原)第一篇,从一个最简单的例子开始1、netty是干什么,怎么用,这里不作介绍,先从一个例子来了解它,netty 5.0以上的版本被废弃了,以下例子从4.1.10.Final版本开始。2、一共3个类1> TestServer 用于启动服务,这里有二个EventLoopGroup,bossGroup和workerGroup,bossGroup接收来自客户端的请求...
转载
发布博客 2019.07.26 ·
155 阅读 ·
0 点赞 ·
0 评论

LeetCode 67. Add Binary

题目class Solution {public: string addBinary(string a, string b) { string result=""; int i=a.length()-1; int j=b.length()-1; int num=0; while(...
转载
发布博客 2019.09.19 ·
95 阅读 ·
0 点赞 ·
0 评论

LeetCode 71. Simplify Path

题目字符串问题class Solution {public: string simplifyPath(string path) { string paths[10005]; int pos=0; paths[0]="/"; string str=""; for(int i=0;...
转载
发布博客 2019.09.25 ·
108 阅读 ·
0 点赞 ·
0 评论

LeetCode 69. Sqrt(x)

题目class Solution {public: int mySqrt(int x) { long long int y=x; int l=0; int r=(x==1?1:x/2); while(l<=r) { long long int mid=(l+r)/2...
转载
发布博客 2019.09.22 ·
92 阅读 ·
0 点赞 ·
0 评论

LeetCode 62. Unique Paths

题目这是一道迷宫题目,其实很简单就是简单的动态规划题class Solution {public: int dp[105][105]; int uniquePaths(int m, int n) { for(int i=0;i<n;i++) { for(int j=0;j<m;j+...
转载
发布博客 2019.09.13 ·
97 阅读 ·
0 点赞 ·
0 评论

LeetCode 58. Length of Last Word

题目签到题class Solution {public: int lengthOfLastWord(string s) { int tag=0; int ans=0; for(int i=s.length()-1;i>=0;i--) { if(s[i]...
转载
发布博客 2019.09.06 ·
94 阅读 ·
0 点赞 ·
0 评论

LeetCode 57 Insert Interval

题目插入一个再排序,没有一点难度struct Node{ int x; int y; Node(){} Node(int x,int y){ this->x = x; this->y =y; }}a[100005];int Compare(Node a,Node b){ if(a.x...
转载
发布博客 2019.09.05 ·
49 阅读 ·
0 点赞 ·
0 评论

LeetCode 55. Jump Game

题目这一道题目的低配版,https://www.cnblogs.com/dacc123/p/11373526.html我觉得本质还是贪心题。class Solution {public: int dp[100005]; bool canJump(vector<int>& nums) { if(nums.size(...
转载
发布博客 2019.09.02 ·
28 阅读 ·
0 点赞 ·
0 评论

LeetCode 72. Edit Distance

题目简单动态规划class Solution {public: int dp[1005][1005]; int minDistance(string word1, string word2) { int len1=word1.length(); int len2=word2.length(); ...
转载
发布博客 2019.10.03 ·
140 阅读 ·
0 点赞 ·
0 评论

LeetCode 70. Climbing Stairs

题目class Solution {public: int dp[10005]; int climbStairs(int n) { dp[1]=1; dp[2]=2; for(int i=3;i<=n;i++) { dp[i]=dp[i-1...
转载
发布博客 2019.09.22 ·
103 阅读 ·
0 点赞 ·
0 评论

LeetCode 68. Text Justification

题目没有意思的字符串模拟题class Solution {public: vector<string> fullJustify(vector<string>& words, int maxWidth) { vector<string> latest; vector<vecto...
转载
发布博客 2019.09.22 ·
104 阅读 ·
0 点赞 ·
0 评论

LeetCode 53. Maximum Subarray

题目简单DPclass Solution {public: int dp[100005]; int maxSubArray(vector<int>& nums) { if(nums.size()==0) return 0; int ans = nums[0...
转载
发布博客 2019.08.29 ·
37 阅读 ·
0 点赞 ·
0 评论

LeetCode 49. Group Anagrams

题目签到题c++class Solution {public: map<string,int> m; vector<vector<string>> groupAnagrams(vector<string>& strs) { vector<string> strs2...
转载
发布博客 2019.08.26 ·
34 阅读 ·
0 点赞 ·
0 评论

使用位运算实现int32位 整数的加减乘除

我觉得比较难想的是加法吧。首先加法,脑海中脑补二进制加法,相同位相加,超过2 ,则进1,留0那么用位运算怎么实现呢?其实理解了异或和与操作,就很容易想出来了。我觉得异或操作和与操作完全就是实现加法的。 异或就是相同位相加最后留下的结果,而与就是相同位相加是否进1的结果。异或:相同位 相同为0,不同为1。与:相同位 都是1结果才是1,否则都是0。这不就是二进制相加吗?异或 与...
转载
发布博客 2019.08.25 ·
306 阅读 ·
0 点赞 ·
0 评论

LeetCode 66. Plus One

题目class Solution {public: vector<int> plusOne(vector<int>& digits) { vector<int> ans; int len = digits.size(); int num=1; ...
转载
发布博客 2019.09.19 ·
94 阅读 ·
0 点赞 ·
0 评论

LeetCode 65. Valid Number

题目+.9 也是合法数字吗class Solution {public: bool isNumber(string s) { int start=0; int sign=0; int sign2=0; int e=0; int point=0; int last...
转载
发布博客 2019.09.19 ·
109 阅读 ·
0 点赞 ·
0 评论
加载更多