首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include<stdio.h>
int sort(int,int);
void main()
{
int *p1,*p2,*p;
int a,b;
scanf("%d%d",&a,&b);
p1=&a;
p2=&b;
sort(a,b);
}
 
......................
阅读全部 | scurjc 贴于 2015年4月24日 11:32     hide bbsi
int su=0;

void resvnum(int k)
{
if(k==0) return ;
int n=k % 10;
k/=10;
su=su*10+n;
resvnum(k);
}
阅读全部 | wp231957 贴于 2015年4月22日 10:03     hide bbsi
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<malloc.h>
#include<math.h>
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
struct SqStack{
 int *base;
 int *top;
 int stacksize; 
};
......................
阅读全部 | 娃娃菜 贴于 2015年4月21日 22:23     hide bbsi
我想建立一种索引,但是要能快速高效的能够索引到海量数据,大概有几百万条的生物DNA序列,要能准确的查找到所在序列编号与位置,而且所占内存还要小!!!怎么办???
阅读全部 | 所以,散了吧 贴于 2015年4月21日 22:05     hide bbsi
#include"stdio.h"
int max(int a,int b)
{
int max=(a>b)?a:b;
return max;
}
void main ()
{
int a,b;
printf("输入两个整数:");
scanf("%d%d",&a,&b);
printf("%d\n",max(a,b));
......................
阅读全部 | 鱼游海底 贴于 2015年4月18日 11:56     hide bbsi
#include"stdio.h"
int main()
{
int a,b;
printf("输入两个整数:");
scanf("%d%d",&a,&b);
if(a>b)printf("max=%d\n",a);
else printf("max=%d\n",b);
return 0;
}
阅读全部 | 鱼游海底 贴于 2015年4月18日 11:49     hide bbsi
#include <stdlib.h>
#include <stdio.h>
#include <winsock2.h>       //加入WinSock的头文件
#include <WS2TCPIP.h>       //设置IP_HDRINCL需要
#include <time.h>
#pragma comment(lib,"Ws2_32.lib")    //加入库函数
#include <iostream>
using namespace std;
typedef struct //定义IP首部 

unsigned char h_verlen; //4位首部长度,4位IP版本号 无符号范围较广在正值
unsigned char tos; //8位服务类型TOS 
......................
阅读全部 | T_MACC 贴于 2015年4月17日 20:35     hide bbsi
int main()
{  int i,j,n=0;
    for (i=1;i<=4;i++)                      
        for (j=1;j<=5;j++,n++) 
        {  if (n%5==0) printf (“\n”); 
         printf ("%d\t",i*j);
        }  
     printf("\n");
     return 0;
}
阅读全部 | 菀菀菀 贴于 2015年4月15日 23:38     hide bbsi
建立一个通讯录管理系统:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
int n;
struct tongxunlu
{
int no;//序号
char xingming[20];//姓名
char dianhuahaoma[15];/ 
......................
阅读全部 | 兜里有糖哦 贴于 2015年4月14日 21:46     hide bbsi
#include<stdio.h>
#define Pi 3.141592657

int input(int r);
int s, r, a = 0, b = 0, c = 0;

int main(int s)
{
s = (int)Pi*input(r) ^ 2;
printf("三维体的二维圆面转换值为:%d\n", s);
return s;
}
......................
阅读全部 | 唯风相随 贴于 2015年4月14日 21:11     hide bbsi
上一页 104 105 106 107 108 109 110 111 112 113 下一页