首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include "iostream"
#include "string.h"
using namespace std;
#define N1 10
#define N2 10
#define N 20
void str_cat(char s1[],char s2[],char s[])
{
int i=0,j=0;
while(s1[i])
{
s[i]=s1[i];
......................
阅读全部 | singleton 贴于 2013年5月11日 21:15     hide bbsi
#include <stdio.h>
int fact(int n);
int multi(int n);
int main(void)
{
    int i; 
    double sum, item, eps;

    eps=1E-6;
    sum=1;
    item=1;
    for(i=1;item>=eps; i++){
......................
阅读全部 | shenwenbin 贴于 2013年5月11日 13:50     hide bbsi
#include <iostream>
using namespace std;
template<class Type>
void Swap(Type *array,Type a,Type b)
{ Type temp;
temp=array[a];
array[a]=array[b];
array[b]=temp;
}
template<class Type>
void FastSort(Type *array,Type n)
{ for(int i=0;i<n;i++)
......................
阅读全部 | 不玩虚的 贴于 2013年5月11日 06:16     hide bbsi
//1.添加功能找到并删除一个学生数据,
//2.有序的维护链表 
#include<iostream>
#include<cstring>
using namespace std;
class CPerson
{
friend class CNode;
public:
CPerson(){}
CPerson(char*name,int age,char*str=0,char sex='M')
{
......................
阅读全部 | G梦 贴于 2013年5月9日 20:26     hide bbsi
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#define MIN 1 //宏定义房间序号的最小值
#define MAX 30 //宏定义房间序号的最大值
#define LEN sizeof(struct Hotel) //用LEN代替结构体的"长度"

char menu_select(); //函数声明 
struct Hotel * regeist();
void in_information();
void out_information();
......................
阅读全部 | C残血流 贴于 2013年5月9日 19:46     hide bbsi
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int i,j=0,a,b,c,m,n;
cin>>m>>n;
while((m!=0)||(n!=0))
{
for(i=m;i<=n;i++)
{
a=i/100;
......................
阅读全部 | C1830365552 贴于 2013年5月9日 08:25     hide bbsi
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
sbit wela=P2^6;
sbit wela=P2^7;
uchar num;
uchar code table[]={0x3f,0x06,0x5b,
0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,
0x77,0x7c,0x39,0x5e,0x79,0x71};
void delay (uint z);
void main()
{
......................
阅读全部 | 谭763914202 贴于 2013年5月7日 21:39     hide bbsi
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
sbit wela=P2^6;
sbit wela=P2^7;
uchar num;
uchar code table[]={0x3f,0x06,0x5b,
0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,
0x77,0x7c,0x39,0x5e,0x79,0x71};
void delay (uint z);
void main()
{
......................
阅读全部 | 谭763914202 贴于 2013年5月7日 21:38     hide bbsi
#include <stdio.h> 
#include <stdlib.h>  
#include <time.h>  
#include <string.h>  
#define SIZE 200 
int main(void) 

 FILE *fp; 
 int i, Binary[SIZE]; 
 char name[SIZE]; 
 puts("Enter the name:"); 
 gets(name); 
......................
阅读全部 | 琪琪爱你 贴于 2013年5月7日 16:52     hide bbsi
#include "iostream"
#include "string.h"
#define N1 10
#define N2 10
#define N 20
void str_cat(char s1[],char s2[],char s[])
{
int i=0,j=0;
while(s1[i])
{
s[i]=s1[i];
i++;
......................
阅读全部 | 人生如题 贴于 2013年5月6日 15:33     hide bbsi
上一页 255 256 257 258 259 260 261 262 263 264 下一页