首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
void Sort(CList &stulist)
{
 CNode *p1,*p2,*p3,*big;
 for(p1=stulist.get_listhead();p1!=NULL;p1=p1->pnext)
 {
big=p1;
p2=p1->pnext;
while(p2)
{
     if(big->pdata->get_score()<p2->pdata->get_score())
      big=p2;
 p2=p2->pnext;
......................
阅读全部 | 张中印 贴于 2013年12月21日 09:34     hide bbsi
#include <stdio.h>
#include <ctype.h>
#define m 2
struct dates input_date(void);
void print_date(struct dates wor[m]);
void tong_ji(struct dates wor[m]);

struct dates{
float a,b,c;
char gh[20],name[20],sex[20],date[20];
}wor[m];

......................
阅读全部 | c718382171 贴于 2013年12月21日 00:13     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
struct record
{
char name[20];
char phone[20];
char address[40];
char number[30];
char sex[20];
}telebook[500];
......................
阅读全部 | pin轩 贴于 2013年12月20日 21:52     hide bbsi
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
上一页 237 238 239 240 241 242 243 244 245 246 下一页