- 军军小站|张军博客
搜索到与相关的文章
Android

android-使用PopupWindow实现随机排列的自定义

效果图:MainActivity.javaViewkeyboardView=LayoutInflater.from(this).inflate(R.layout.random_keyboard,null);Displaydisplay=getWindowManager().getDefaultDisplay();intheight=(int)getResources().getDimension(R.dimen.height);popupWindow=ne

系统 2019-08-29 23:04:25 2724

Android

android-passwordsafe - Android Password Safe

android-passwordsafe-AndroidPasswordSafe-GoogleProjectHostingandroid-passwordsafeAndroidPasswordSafeProjectHomeWikiSourceSummaryPeopleProjectInformation[Clicktostarproject]Starredby40usersProjectfeedsCodelicenseApacheLicense2.0Mem

系统 2019-08-12 01:55:06 2724

数据库相关

非阻塞socket调用connect, epoll和select检查连

非阻塞socket调用connect,epoll和select检查连接情况示例-语行-博客园非阻塞socket调用connect,epoll和select检查连接情况示例我们知道,linux下socket编程有常见的几个系统调用:对于服务器来说,有socket(),bind(),listen(),accept(),read(),write()对于客户端来说,有socket(),connect()这里主要要讲的是客户端这边的connect函数。对于客户端来说

系统 2019-08-12 01:52:46 2724

操作系统

操作系统实验3:内存分配与回收

今天早上做了操作系统实验:1、阅读理解两个例程,掌握例程的运作流程。2、连续式分配例程中提供了三种分配算法:首次适应、循环首次适应、最佳适应。例程还缺少分配作业和回收作业的功能。请至少实现一种分配算法并完成分配作业的功能,保证该例程能够正确实现分配作业的功能3、回收作业的功能属于选做部分。4、分页管理例程缺少分配作业和回收的功能,请实现这两个功能,保证该例程能够正确实现分页管理的分配与回收功能5、上述要求2和4,必须完成其中一个。连续式分配代码贴上:1#i

系统 2019-08-12 01:33:53 2724

Windows

How to install IIS 7.5 on Windows 7 using th

原文HowtoinstallIIS7.5onWindows7usingtheCommandLineOnWindowsVista,toinstallIIS7.0fromthecommandline,youcanuseatoolcalledtheWindowsPackageManager(Pkgmgr.exe).Forexample,thecommandlineforinstallingIIS7.0onWindowsVistamightlooksomethin

系统 2019-08-12 01:33:51 2724

各行各业

UVa 10167 - Birthday Cake

这道题是直接暴力,需要注意的是cherry不能在直线上,因此需要两个变量来分别统计在直线两边的个数;还想到一种方法:把所有斜率排序,然后二分枚举,复杂度为O(n+n*lgn+lgn)。1#include23intc[105][2];45intmain()6{7intn,c1,c2,A,B,i,ans[2];89while(1)10{11scanf("%d",&n);12if(!n)break;1314for(i=1;i<=2*n;++i)

系统 2019-08-12 09:27:20 2723

各行各业

APUE习题5.x

5.4下面的代码在一些机器上运行正确,而在另外一些机器运行时出错,解释问题所在?#includeintmain(void){charc;while((c=getchar())!=EOF)putchar(c);}答:这是一个比较常见的错误。getc以及getchar的返回值是整型,而不是字符型。由于EOF经常定义为-1,那么如果系统使用的是有符号的字符类型,程序还可以正常工作。但如果使用的是无符号字符类型,那么返回的EOF被保存到字符c后将

系统 2019-08-12 09:27:04 2723

编程技术

WebBrowser用法详解

1、获得浏览器信息:PrivateSubCommand1_Click()WebBrowser1.Navigate"http://www.applevb.com"EndSubPrivateSubCommand2_Click()DimoWindowDimoNavSetoWindow=WebBrowser1.Document.parentWindowSetoNav=oWindow.navigatorDebug.PrintoNav.userAgentSetoWin

系统 2019-08-12 01:33:32 2723

ASP.NET

asp.net生命周期

PageEventTypicalUsePreInitUsethiseventforthefollowing:ChecktheIsPostBackpropertytodeterminewhetherthisisthefirsttimethepageisbeingprocessed.Createorre-createdynamiccontrols.Setamasterpagedynamically.SettheThemepropertydynamically.

系统 2019-08-29 22:20:46 2722