首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include<stdio.h>
main( )
{
int i=1;
void union(List&La,List Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e);
if(!LocateElem(La,e,equal( ))ListInsert(La,++La_len,e));
}
}
......................
阅读全部 | 刘新手 贴于 2015年4月4日 11:32     hide bbsi
#include<stdio.h>
main( )
{
int i=1;
void union(List&La,List Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e);
if(!LocateElem(La,e,equal( ))ListInsert(La,++La_len,e));
}
}
......................
阅读全部 | 刘新手 贴于 2015年4月4日 11:28     hide bbsi
求基于51单片机的利用蓝牙模块控制led灯的c语言
代码
阅读全部 | 杨蕾0601 贴于 2015年4月1日 13:30     hide bbsi
#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c,dis,p,q;
printf("please intput a;b;c:");
scanf("%lf%lf%lf",&a,&b,&c);
dis=b*b-4*a*c;
p=-b/(2*a);
if(a!=0)
{

......................
阅读全部 | 夏日_ 贴于 2015年3月31日 19:23     hide bbsi
#include<stdio.h>
#include<stdlib.h>
#include<math.h>

typedef unsigned short int WORD;
typedef unsigned int DWORD;
typedef int LONG;
typedef unsigned char BYTE;

/*********** *********** *********** *********** *********** *********** ***********
* definition :struct
* Description :位图文件头
......................
阅读全部 | valerychen 贴于 2015年3月29日 13:57     hide bbsi
#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
    ElemType data;
    struct LNode *next;
}LNode,*LinkList;
......................
阅读全部 | 一天一天谎言 贴于 2015年3月28日 20:43     hide bbsi
#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
    ElemType data;
    struct LNode *next;
}LNode,*LinkList;
......................
阅读全部 | 一天一天谎言 贴于 2015年3月28日 20:42     hide bbsi
#include <malloc.h>
#include <iostream>
using namespace std;
#define error -1;
#define ok 1;
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
    ElemType data;
    struct LNode *next;
}LNode,*LinkList;
......................
阅读全部 | 一天一天谎言 贴于 2015年3月28日 20:39     hide bbsi
#include "STC12C5A.H"

sbit AD=P1^0;  //定义音频输入接口           //错误
sbit K1=P1^2;  //定义功能按键接口            //错误
sbit K2=P1^4;  //定义功能按键接口           //错误
sbit K3=P3^5;  //定义功能按键接口            //错误
sbit K4=P3^6;  //定义功能按键接口
sbit VCC1=P1^5;  //定义电源功能接口必须为高电平
sbit VCC2=P1^7;  //定义电源功能接口必须为高电平
sbit VCC3=P3^2;  //定义电源功能接口必须为高电平
sbit VCC4=P3^4;  //定义电源功能接口必须为高电平

......................
阅读全部 | 一缕阳光zzs 贴于 2015年3月25日 23:07     hide bbsi
#include<stdio.h>
main()
{
int i,n,m,a[100];
while(scanf("%d%d",&n,&m)!=EOF)
{
for(i=0;i<=n;i++)
{
scanf("%d",&a[i]);
}
i=n;
while(m<a[i]&&i>=0)
......................
阅读全部 | 等等等 贴于 2015年3月24日 07:18     hide bbsi
上一页 106 107 108 109 110 111 112 113 114 115 下一页