搜索结果
找到约 873 项符合
DO-WHILE 的查询结果
Windows编程 48键电子琴源码
使用C#语言,VS2010环境开发,.NET2.0支持,的48键电子琴,支持鼠标+键盘同时操作,支持缩放窗口,支持自选MIDI音色,键盘热键只支持字母和数字,ZAQ1为由低到高四阶Do音(C),黑键无热键。单文件直接运行
C/C++语言编程 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;
}
...
Linux/uClinux/Unix编程 两个链表的交集
两个链表的交集
#include<stdio.h>
#include<stdlib.h>
typedef struct Node{
&nbsp; int data;
&nbsp; struct &nbsp;Node *next;
}Node;
void initpointer(struct Node *p){
&nbsp; p=NULL;
}
int &nbsp;printlist(struct Node* head){
&nbsp; int flag=1;
&nbsp; head=head->next;
&nbsp; /*
&nbsp; 因为标记1的地 ...
源码/资料 SharpPcap c#抓包实现时时获取网卡信息
SharpPcap c#抓包实现时时获取网卡信息
SharpPcap tutorial: a step by step guide to using SharpPcap
The text of this tutorial is taken directly from WinPcap's&nbsp;official tutorial&nbsp;but is modified to show the C# use of the SharpPcap library. All examples can be downloaded together w ...
工业控制 雅马哈机器人操控软件VIPplus
VIP+ is support software for YAMAHA RCX series robot controllers. In addition to the functions
of the previously released "VIP Windows" software, VIP+ includes an easy-to-use GUI (graphical
user interface). VIP+ also allows control by 2 or more controllers or access to a controller from
2 or more cl ...
接口技术 net_tcp.h
/*
*********************************************************************************************************
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uC/TCP-IP V2
* &nbsp; &nbsp; &nbsp; ...
数值算法/人工智能 a sub-cell WENO reconstruction method
We introduce a sub-cell WENO reconstruction method to evaluate spatial derivatives in the high-order ADER scheme. The basic idea in our reconstruction is to use only r stencils to reconstruct the point-wise values of solutions and spatial derivatives for the 2r-1 th order
ADER scheme in one dimensio ...
单片机编程 用定时器以间隔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()
{&nbsp;
j=0;
i=0;
&nbsp; &nbsp; TMOD=0X01;
TH0=(65536-50000)/256;
TL ...
单片机编程 红外解码程序
/*
&nbsp;* _168ZHONGDUAN2.c
&nbsp;*
&nbsp;* Created: 2014/11/2 15:12:45
&nbsp;* &nbsp;Author: lenovo
&nbsp;*/&nbsp;
#include <avr/io.h>
#include <avr/iom168pa.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/eeprom.h>
//#include <util/delay_basic.h>
//unsigned char const SEGtabl ...