public bool TestCID(string CID)
{
string personalCID = CID;
personalCID = personalCID.ToUpper();
int times = 1;
int sum = 0;
for (int i = personalCID.Length – 1; i >= 0; i–)
{
int number = 0;
if (personalCID[i] == ‘X’)
{
number = 10;
}
else
{
number = Convert.ToInt32(personalCID[i].ToString());
}
sum += number * times;
times *= 2;
}
sum = sum % 11;
return sum == 1;
}
<style type="text/css" >
#Body{overflow:hidden;padding:0;width:600px;}
#Left,#Right{height:auto;margin-bottom:-32767px;padding-bottom:32767px;}
#Left{float:left;width:200px;background:#B2E2FF;}
#Right{float:left;width:400px;background:#FFEEDD;}
</style>
<div id="Body">
<div id="Left">左<br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>
<div id="Right">右</div>
</div>
<style type="text/css">
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {display: inline-block;} /* for IE/Mac */
</style><!-- main stylesheet ends, CC with new stylesheet below... -->
<!--[if IE]>
<style type="text/css">
.clearfix {
zoom: 1; /* triggers hasLayout */
display: block; /* resets display for IE/Win */
} /* Only IE can see inside the conditional comment
and read this CSS rule. Don't ever use a normal HTML
comment inside the CC or it will close prematurely. */
</style>
<![endif]-->
昨天开始VS2008界面就处于假死状态。开始打开文件时还能用,不一会就假死,只有结束任务。
卸了好多软件,VS2008都重装了,还是不行。后来上网搜了下。原来是Office的注册表设置问题。摘抄原文如下:
安装office2003的用户其相关注册表HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\5.0\0\win32的键值是C:\Program Files\Common Files\Microsoft Shared\OFFICE11\msxml5.dll,假如不是就可能使设计视图假死。注册表被修改一般是因为安装别的软件所造成的。它们会篡改注册表键值。
解决方案:运行注册表(开始-运行-输入"regedit"打开注册表)查看键值是否正确,假如不对,按上文修改
I just found some website with full of free software in the world.
you could have your exciting trip from these entries:
http://www.freewarefiles.com/
http://download.cnet.com
最新评论