#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <tchar.h>
//ref_start[http://www.w3.org/TR/PNG/]
/* Table of CRCs of all 8-bit messages. */
unsigned long crc_table[256];
/* Flag: has the table been computed? Initially false. */
int crc_table_computed = 0;
/* Make the table for a fast CRC. */
......................
阅读全部
|
日知己所无
贴于 2014年6月15日 07:27
hide
bbsi
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/connss.asp" -->
<!--#include file="include/global.asp" -->
<!--#include file="check.asp" -->
<%
if Right_Limit(47)<>1 then
response.Write "<script language=javascript>alert('对不起,你没有权限!');location.href='javascript:history.go(-1)'</script>"
end if
ty = request("ty")
s1 = Request("s1")
s2 = Request("s2")
......................
阅读全部
|
梁加加
贴于 2014年6月10日 17:46
hide
bbsi
去掉最后一位 | (101101->10110) | x shr 1
在最后加一个0 | (101101->1011010) | x shl 1
在最后加一个1 | (101101->1011011) | x shl 1+1
把最后一位变成1 | (101100->101101) | x or 1
把最后一位变成0 | (101101->101100) | x or 1-1
最后一位取反 | (101101->101100) | x xor 1
把右数第k位变成1 | (101001->101101,k=3) | x or (1 shl (k-1))
把右数第k位变成0 | (101101->101001,k=3) | x and not (1 shl (k-1))
右数第k位取反 | (101001->101101,k=3) | x xor (1 shl (k-1))
取末三位 | (1101101->101) | x and 7
取末k位 | (1101101->1101,k=5) | x and (1 shl k-1)
取右数第k位 | (1101101->1,k=4) | x shr (k-1) and 1
......................
阅读全部
|
wp231957
贴于 2014年6月9日 13:04
hide
bbsi
#include <stdio.h>
#include <string.h>
void add(char a[],char b[],char c[])
{
char bas[]={'A','B','C','D','E','F'};
int flag=0;
int tmp,tmp2;
int lena=strlen(a)-1;
int lenb=strlen(b)-1;
int lenc=31;
c[lenc]='\0';
......................
阅读全部
|
wp231957
贴于 2014年6月2日 15:17
hide
bbsi
#include<iostream>
using namespace std;
int x=1, y=48;
int main()
{
if(x*2+y*4==100)
else
x=x++;
y=y--;
......................
阅读全部
|
IT菜v鸟
贴于 2014年6月1日 18:32
hide
bbsi
<%@ page language="java" import="java.util.*" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/WebRoot/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
......................
阅读全部
|
doubledd
贴于 2014年5月30日 22:52
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <malloc.h>
//程序目的:随机排座位
int main(void)
{
srand((unsigned)time(NULL));
int sum=0;
printf("请输入学生总人数:");
scanf("%d",&sum);
......................
阅读全部
|
wp231957
贴于 2014年5月28日 16:57
hide
bbsi
<?php
function git_commit_change(){
exec("git status", $l);
$s = implode('', $l);
if(strpos($s, "nothing to commit") === false){
if(strpos($s, 'delete')!==false){
foreach($l as $line){
if(strpos($line, 'delete')!==false){
$deleted_file = trim(str_replace("deleted:",'',$line));
system("git rm ".$deleted_file);
}
......................
阅读全部
|
静夜思
贴于 2014年5月28日 16:14
hide
bbsi
og4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
五月 27, 2014 2:51:27 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.NoClassDefFoundError: IllegalName: com/deepblue/UserAction
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:655)
at java.lang.ClassLoader.defineClass(ClassLoader.java:794)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
......................
阅读全部
|
wu_c_yang
贴于 2014年5月27日 15:06
hide
bbsi