首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class H extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
    Thread thread=new MyThread(request);
    thread.start();
}
......................
阅读全部 | 北京流浪者 贴于 2013年12月19日 08:46     hide bbsi
#include "stdafx.h"
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "time.h"
int _tmain(int argc, _TCHAR* argv[])
{
srand((int)time(NULL));
int i=0,sum=0,k=0,j=0,a=0,num=0,m=0;

for(i=1;i<101;i++)
{
......................
阅读全部 | blueskiner 贴于 2013年12月18日 23:01     hide bbsi
#include <stdio.h>
int c_sec(int source)
{
    int i=1;
    int s=0;
    while(i<=source)
    {
        if((source & i)>0) s++;
        i*=2;
    }
    return s;
}
......................
阅读全部 | wp231957 贴于 2013年12月18日 10:30     hide bbsi
#include <iostream>

using namespace std;

int main()
{

    int k(0);
    int a[10];
    float sum(0);
    float max  = 10000000;
    float min  = -1000000;
......................
阅读全部 | yny 贴于 2013年12月16日 17:10     hide bbsi
#include <iostream>

using namespace std;

int main()
{
  for (int i = 1; i < 48; i++ )
  {
      for (int j = 1; j < 48; j++)
      {
          for (int k = 1; k < 48; k++)
          {
......................
阅读全部 | yny 贴于 2013年12月15日 17:20     hide bbsi
#include<reg52.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit dula=P2^6;
sbit wela=P2^7;
uchar code table[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f};
uint key;
uchar a,b,c,Flag=0; 
......................
阅读全部 | 骑士波波 贴于 2013年12月9日 21:25     hide bbsi
#include<stdio.h>

//这是一段 能够输出1000000以内的所有回文数的程序
int main()
{
    char jym[8]= {'\0'};
    int cssj;
    int index=0;
    int ip1,ip2;
    int tmp;
    for(cssj=11; cssj<=1000000; cssj++)
    {
......................
阅读全部 | wp231957 贴于 2013年12月6日 11:33     hide bbsi
//判断缓存
if (HttpRuntime.Cache["RoomClassList"] == null)
            {
                List<RoomClass_V2> obj = _dal.GetPageList();
                HttpRuntime.Cache.Insert("RoomClassList", obj, null, DateTime.Now.AddDays(1), System.Web.Caching.Cache.NoSlidingExpiration);
                return HttpRuntime.Cache["RoomClassList"];
            }
            else
            {
                return HttpRuntime.Cache["RoomClassList"];
            }
阅读全部 | 默夜鳞 贴于 2013年12月6日 10:24     hide bbsi
#include<stdio.h>

//这是一段校验身份证真伪的一段代码
int main()
{
   int  jqyz[17]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2}; //对应前17位的加权因子
   char jym[11]={'1','0','X','9','8','7','6','5','4','3','2'};  // 11位校验码
   char sfz[100]={'\0'};
   int  jqcj=0;
   printf("请输入待校验的身份证号码:");
   scanf("%s",&sfz[0]);
   return 0;
......................
阅读全部 | wp231957 贴于 2013年12月6日 10:03     hide bbsi
#include<stdio.h>
#include<math.h>
int main(void)
{
int i,j,n;
scanf("%d",&n);
for(i=1-n;i<=n-1;i++)
{
for(j=0;j<fabs(i);j++)
{
printf(" ");
}
......................
阅读全部 | nickychung 贴于 2013年12月5日 22:57     hide bbsi
上一页 237 238 239 240 241 242 243 244 245 246 下一页