首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
Create Procedure sp_MSJZ(@N int)
As
Begin
If @N<3 or @N%2=0
Begin
Print '请输入大于2的奇数'
Return
End

--定义I,J行列和值
Declare @I int=1,@J int,@K int,@X int,@Y int,@T int,@R int

......................
阅读全部 | mxbing1984 贴于 2014年8月23日 17:20     hide bbsi
Create Procedure sp_Upload(@path Varchar(200))
As
Begin
Set NoCount on
/*
Create Table myFile
(
ID int Identity(1,1),
filename Varchar(100),
files Varbinary(max)
)
*/
......................
阅读全部 | mxbing1984 贴于 2014年8月23日 17:19     hide bbsi
vs2008在设计视图中我托了一下图片全乱了,应该怎么还原回去
阅读全部 | IIVVTT 贴于 2014年8月18日 17:08     hide bbsi
#include <stdio.h>

//利用泰勒公式计算星期几
//w=y+[y/4]+[c/4]-2c+[26(m+1)/10]+d-1 
int getweek(int year,int month,int day)
{
int w;    //星期
int c;    //世纪-1 YYYY的头两位
int y;    //年份   YYYY的后两位
int m;    //月份 >=3 1月 2月看成上年的13月 14月
int d=day;    //日
if(month>=3) 
......................
阅读全部 | wp231957 贴于 2014年8月18日 10:35     hide bbsi
<?php

function gbk_to_utf8($str){
return mb_convert_encoding($str, 'utf-8', 'gbk');
}

function utf8_to_gbk($str){
return mb_convert_encoding($str, 'gbk', 'utf-8');
}
阅读全部 | 静夜思 贴于 2014年8月16日 10:50     hide bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import os
import sys
import time

def get_remote_status():
    l = os.popen('ssh root@remote.com "cd /var/www/mysite; git st"').readlines()
    s = ''.join(l)
    return s

......................
阅读全部 | 静夜思 贴于 2014年8月14日 23:46     hide bbsi
Last non zero digit of (1!) is: 1
Last non zero digit of (2!) is: 2
Last non zero digit of (3!) is: 6
Last non zero digit of (4!) is: 4
Last non zero digit of (5!) is: 2
Last non zero digit of (6!) is: 2
Last non zero digit of (7!) is: 4
Last non zero digit of (8!) is: 2
Last non zero digit of (9!) is: 8
Last non zero digit of (10!) is: 8
Last non zero digit of (11!) is: 8
Last non zero digit of (12!) is: 6
......................
阅读全部 | 日知己所无 贴于 2014年8月14日 14:29     hide bbsi
//C# DES加密解密之解密方法         
public string Decrypt(string pToDecrypt, string sKey)        
{            
     DESCryptoServiceProvider des = new DESCryptoServiceProvider();            
     byte[] inputByteArray = new byte[pToDecrypt.Length / 2];            
     for (int x = 0; x < pToDecrypt.Length / 2; x++)            
     {                
        int i = (Convert.ToInt32(pToDecrypt.Substring(x * 2, 2),16));               inputByteArray[x] = (byte)i;            
     }            
     byte [] inputByteArraykey = new byte[sKey.Length / 2];            
     for (int x = 0; x < sKey.Length / 2; x++)            
     {                
......................
阅读全部 | ws9187 贴于 2014年8月14日 09:20     hide bbsi
#===============================================================================
# YJ_MirrorShape_P
# author: yangjie
# mobilePhone:15850792203
# QQ:691633493
# E-mail:691633493@qq.com
#version:1.0
#===============================================================================
from YJ_Rig_Pub import*

def YJ_MirrorListShapes(InLis):
    ObLis = InLis[0]
......................
阅读全部 | zhuqingting 贴于 2014年8月13日 18:05     hide bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

class File:

file = None

def __init__(self):
pass

@staticmethod
def open(obj, flag):
......................
阅读全部 | 静夜思 贴于 2014年8月12日 17:09     hide bbsi
上一页 213 214 215 216 217 218 219 220 221 222 下一页