虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

Main

  • steppedchirp子函数产生一个子脉冲数为N的步进频信号

    steppedchirp子函数产生一个子脉冲数为N的步进频信号,子脉冲为chirp信号,参数可在Main函数中设置,结果保存在数组y[]中。

    标签: steppedchirp 函数 信号 脉冲

    上传时间: 2013-12-16

    上传用户:txfyddz

  • arm2200的蜂鸣器驱动

    arm2200的蜂鸣器驱动,这里是Main函数,其它启动代码不用改

    标签: 2200 arm 蜂鸣器 驱动

    上传时间: 2014-01-21

    上传用户:kikye

  • 已知数据文件IN.dat中存有200个四位数

    已知数据文件IN.dat中存有200个四位数,并已调用读函数rData()把这些数存入数组a中,请编写函数spellNum(),其功能是:把个位数字和千位数字重新组成一个新的二位数(新二位数的十位数字是原四位数的个位数字,新二位数的个位数字是原四位数的千位数字),以及把百位数字和十位数字组成另一个新的二位数(新二位数的十位数字是原四位数的百位数字,新二位数的个位数字是原四位数的十位数字),如果新组成的两个二位数一个是奇数,另一个为偶数,并且两个二位数中至少有一个数能被17整除,同时两个新数的十位数字均不为0,则将满足此条件的四位数按从大到小的顺序存入数组b中,并要计算满足上述条件的四位数的个数count。最后Main()函数调用写函数wData(),把结果count以及数组b中符合条件的四位数输出到OUT.dat文件中。

    标签: 200 dat IN 数据文件

    上传时间: 2014-10-29

    上传用户:李彦东

  • TdcHintEx Provides your users with a cool transparent hint. It replaces standard Delphi hint wind

    TdcHintEx Provides your users with a cool transparent hint. It replaces standard Delphi hint window. Just drop a TdcHintEx in your Main form. Set Enabled to True. And run your application. Oh btw, please set ShowHint to True.. :) Drop me a line, and tell me what you think of it. Antony Hoon antony7777@telkom.net

    标签: hint transparent TdcHintEx Provides

    上传时间: 2014-01-12

    上传用户:181992417

  • 全景图像和多光谱图像融合

    PixelFusion.dsp     This file (the project file) contains information at the project level and     is used to build a single project or subproject. Other users can share the     project (.dsp) file, but they should export the makefiles locally. PixelFusion.h     This is the Main header file for the application.  It includes other     project specific headers (including Resource.h) and declares the     CPixelFusionApp application class. PixelFusion.cpp     This is the Main application source file that contains the application     class CPixelFusionApp. PixelFusion.rc     This is a listing of all of the Microsoft Windows resources that the     program uses.  It includes the icons, bitmaps, and cursors that are stored     in the RES subdirectory.  This file can be directly edited in Microsoft Visual C++. PixelFusion.clw     This file contains information used by ClassWizard to edit existing     classes or add new classes.  ClassWizard also uses this file to store     information needed to create and edit message maps and dialog data     maps and to create prototype member functions.

    标签: his brovey

    上传时间: 2015-03-16

    上传用户:313777423

  • toj 4022源代码

    #include <iostream> using namespace std; int Main(){ int t; cin>>t; while(t--){ long long n; cin>>n; if(n%2==1) cout<<(n*n-1)/4<<endl; else if (n%4==0) cout <<(n*n)/4-1<<endl; else{ if(n==2) cout<<1<<endl; else{ long long k=n/2-1; cout <<k*k+2*k-3<<endl; } } } return 0; }

    标签: 天津大学acm4022 代码

    上传时间: 2015-04-20

    上传用户:nr607

  • 两个链表的交集

    两个链表的交集 #include<stdio.h> #include<stdlib.h> typedef struct Node{   int data;   struct  Node *next; }Node; void initpointer(struct Node *p){   p=NULL; } int  printlist(struct Node* head){   int flag=1;   head=head->next;   /*   因为标记1的地方你用了头结点,所以第一个数据域无效,应该从下一个头元结点开始   */   if(head==NULL)     printf("NULL\n");   else   {     while(head!=NULL)     {       if(flag==1)       {       printf("%d",head->data);       flag=0;       }       else       {         printf(" %d",head->data);       }       head=head->next;     }     printf("\n");   }   return 0; } struct Node *creatlist(struct Node *head) {      int n;    struct  Node *p1=(struct Node *)malloc(sizeof(struct Node));   p1->next=NULL; while(scanf("%d",&n),n!=-1) {   struct Node *pnode=(struct Node *)malloc(sizeof(struct Node));   pnode->next=NULL;      pnode->data=n;   if(head==NULL)     head=pnode;   p1->next=pnode;   p1=pnode; } return head; } struct Node *Intersect(struct Node *head1, struct Node *head2) { struct Node *p1=head1,*p2=head2;/*我这里没有用头指针和头结点,这里是首元结点head1里面就是第一个数据,一定要理解什么事头指针, 头结点,和首元结点 具体你一定要看这个博客:http://blog.sina.com.cn/s/blog_71e7e6fb0101lipz.html*/ struct Node *head,*p,*q; head = (struct Node *)malloc(sizeof(struct Node)); head->next = NULL; p = head; while( (p1!=NULL)&&(p2!=NULL) ) { if (p1->data == p2->data) { q = (struct Node *)malloc(sizeof(struct Node)); q->data = p1->data; q->next = NULL; p->next = q;//我可以认为你这里用了头结点,也就是说第一个数据域无效     **标记1** p = q; p1 = p1->next; p2 = p2->next; } else if (p1->data < p2->data) { p1 = p1->next; } else { p2 = p2->next; } } return head; } int Main() {   struct Node *head=NULL,*headt=NULL,*t;   //initpointer(head);//这里的函数相当于head=NULL;  // initpointer(headt);//上面已经写了headt=NULL那么这里可以不用调用这个函数   head=creatlist(head);   headt=creatlist(headt);   t=Intersect(head,headt);   printlist(t); }

    标签: c语言编程

    上传时间: 2015-04-27

    上传用户:coco2017co

  • stm32小量iap

    1.此代码基于红牛开发板,请根据自己的板子进行修改。 2.通过修改网上的代码实现,修改前的功能开了一个很大的缓存接收app数据,然后一次性全部数据写入, 但是这个在实际应用中没多大用,所以修改为一次写入128个字节。 3.程序flash的偏移地址为0x8010000,所以app编译前应该在mdk中设置 Option窗口->Target页->IROM1,start 改为 0x8010000 4.设置中断向量重映射,我用的方法是在app端的Main函数起始位置添加语句 SCB->VTOR = FLASH_BASE | 0x10000; 5.启动时如果发现没有app,会进入bootloader模式(灯全亮),如果发现有程序就要看程序的功能了。 如果有app,但是又想重新升级的话就按住某个键(我这里是Tamper),然后按复位,松开复位之前不要松开 按键,这样就会进入bootloader模式。 6.进入bootloader后通过串口1接收升级app数据,bin文件数据,接收完成后按User1键进行升级操作,完成后 复位或者按User2键可以运行刚写入的app。

    标签: stm32 iap

    上传时间: 2015-05-18

    上传用户:llma2017

  • C语言用户注册及登录

    #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> Main(void) {   char new_name[4], name[4];     int new_sn ,sn;     printf("        【注册】\n\n");     printf("请输入用户名(四位英文字母):");     scanf("%s", &new_name);     printf("请输入密码(六位数字):") ;     scanf("%d" ,&new_sn);    /*system("PAUSE");*/     system("CLS");/*清屏*/        /*system("PAUSE");*/        printf("  【登陆】\n\n");        printf("输入用户名:");        scanf("%s" , &name);        if(!strcmp(new_name,name)){printf("输入用户名错误!"); }/*判断用户是否正确*/     printf("输入密码:");     scanf("%d" , &sn);     if(new_sn != sn){printf("输入密码错误!"); }/*判断密码是否正确*/     system("CLS");     printf("恭喜你,登陆成功!\n");        getchar();     return 0;     }

    标签: C语言

    上传时间: 2015-12-30

    上传用户:gjatd1987

  • 用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。

    #include<reg51.h> #define uchar unsigned char #define uint unsigned int uint i,j; sbit dula=P2^6; sbit wela=P2^7; uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d, 0x7d,0x07,0x7f,0x6f,0x77,0x7c, 0x39,0x5e,0x79,0x71}; void Main() {  j=0; i=0;     TMOD=0X01; TH0=(65536-50000)/256; TL0=(65536-50000)%6; EA=1; ET0=1; TR0=1; while(1); } void time0() interrupt 1 { TH0=(65536-50000)/256; TL0=(65536-50000)%6;     i++; if(i==15) { P0=table[j]; dula=1; dula=0; P0=0XC0; wela=1; wela=0; j++; i=0; if(j==16) { j=0; } } }

    标签: 用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。

    上传时间: 2016-02-11

    上传用户:娇纵Pamper