首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#ifndef _POINT_H
#define _POINT_H
class Point{
public:
Point();
Point(int x,int y);
~Point();
void move(int newx,int newy);
int getx() const {return x;};
int gety() const {return y;};
static void showcount();
private:
......................
阅读全部 | zxh371 贴于 2013年12月4日 11:24     hide bbsi
# include<stdio.h>
int main()
{
int Bres_Line(int x1,int y1,int x2,int y2,int color);
int a,b,c,d,e;int Bres_Line;
printf("please enter 5 interget numbers:");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
    Bres_Line=Bres_line1(a,b,c,d,e);
    printf(" the Line is:");
return 0;
}

......................
阅读全部 | 素渔夫 贴于 2013年12月3日 15:27     hide bbsi
#include<stdio.h>
int main(void)
{
   int i,n;
   long sum;/*n!的结果*/
   scanf("%d",&n);
   sum=1;
   for(i=1;i<=n;i++)/*从1开始*/
   sum=sum*i;
   printf("%l\n",sum);
   return 0;
}
......................
阅读全部 | wangshui125 贴于 2013年12月1日 19:51     hide bbsi
#include<iostream>
#include<stdio.h>
#include<stdlib.h>

#define Max 5
#define NULL 0

#define bool int
#define false 0
#define true 1

using namespace std;
......................
阅读全部 | 爱的天使xuge 贴于 2013年12月1日 07:13     hide bbsi
//用数组C[n][n]存放n个城市间的费用值。
//用数组P[n]记录已经找到的费用最小的周游路线,C为其相应的费用, C初值为∞。
//用数组N[n]记录目前正在寻找的周游路线,NC为其相应的费用;
//如果结点next不是N中已有的结点,且NC+C[N[s]][next]小于C,则结点next是可接受的。
//如果NC+C[N[n]][1]小于C,则路线N更佳,于是P[] = N[],C = NC+C[N[n]][1]。

#include<iostream>
using namespace std;
const int MAX = 100;
int P[MAX],N[MAX],T[MAX];
int Cost,NCost;
void back_try(int s,int n,int C[4][4])
......................
阅读全部 | only_JBy 贴于 2013年11月27日 15:12     hide bbsi
#include<stdio.h>
int main(void)
{
   int i,n,n!;
   scanf("%d",&n);
   n!=1;
   for(i=0;i<=n;i++)
   n!=n!*i;
   printf("%d\n",sum);
   return 0;

}
......................
阅读全部 | nickychung 贴于 2013年11月24日 20:46     hide bbsi
import java.io.*;
import java.util.ArrayList;

public class FileCpy {
       private String fileName ;
       public ArrayList<FileCpy>fileList ;
      
       public FileCpy(String name){
            setFileName(name);
      }
       public void setFileName(String name) {
             this.fileName = name;
......................
阅读全部 | 喵喵叫 贴于 2013年11月21日 16:07     hide bbsi
//1、试编写一个求已知单链表的数据域的平均值的函数(数据域数据类型为整
 //型)。 
 #include "stdio.h"
 #include "malloc.h"
 typedef struct node
 {
int data; 
    struct node *link;
 }NODE;

int aver(NODE *head)
 {
......................
阅读全部 | a2316984138 贴于 2013年11月21日 09:20     hide bbsi
//1、试编写一个求已知单链表的数据域的平均值的函数(数据域数据类型为整
 //型)。 
 #include "stdio.h"
 #include "malloc.h"
 typedef struct node
 {
int data; 
    struct node *link;
 }NODE;

int aver(NODE *head)
 {
......................
阅读全部 | a2316984138 贴于 2013年11月21日 09:18     hide bbsi
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS实现的水平动态导航菜单</title>
<style type="text/css">
body {
padding: 0;
margin: 0;
background: #D3D4C0;
font-size: 14px;
font-family: Arial, sans-serif;
text-align: center;
......................
阅读全部 | php2014 贴于 2013年11月17日 14:35     hide bbsi
上一页 234 235 236 237 238 239 240 241 242 243 下一页