代码搜索:while
找到约 10,000 项符合「while」的源代码
代码结果 10,000
www.eeworm.com/read/303498/13814516
m e0316.m
val=input('Enter a number :');
sum=0;cnt=0;
while (val~=0)
sum=sum+val; cnt=cnt+1;
val=input('Enter a number (end in 0):');
end
if (cnt> 0)
sum
mean=sum/cnt
end
www.eeworm.com/read/303324/13818363
cpp maze.cpp
#include
const int MAX = 100;
enum Boolean{FALSE, TRUE};
struct stack {
int elements[MAX];
int top;
}; //定义栈类型
www.eeworm.com/read/303321/13818438
table reserve.table
while
do
public
class
static
new
void
int
do
for
int
System
www.eeworm.com/read/303320/13818449
cpp maze.cpp
#include
const int MAX = 100;
enum Boolean{FALSE, TRUE};
struct stack {
int elements[MAX];
int top;
}; //定义栈类型
www.eeworm.com/read/303280/13819013
txt 3跑马灯.txt
#include "reg51.h"
sbit P1_0=P1^0;
sbit P1_1=P1^1;
sbit P1_2=P1^2;
sbit P1_3=P1^3;
void delay (int i);//被调用函数要先声明,定义所用变量
void main()
{
P1_0=1;
P1_1=1;
P1_2=1;
P1_3=1;
do
www.eeworm.com/read/303280/13819016
c 2作业.c
#include "reg51.h"
P1^0=0;
P1^1
void delay (int i);
void main()
{
do
{
P1^0=0;
P1^1=0
delay(1000);
P1^0=1;
P1^1=1;
P1^2=0;
P1^3=0;
delay(1000);
P1^2
www.eeworm.com/read/303280/13819031
c 实验2.c
#include "reg51.h"
sbit P1_0=P1^0;
sbit P1_1=P1^1;
sbit P1_2=P1^2;
sbit P1_3=P1^3;
void delay (int i);
void main()
{
P1_0=1;
P1_1=1;
P1_2=1;
P1_3=1;
do
{
P1_0=0;
www.eeworm.com/read/303278/13819103
txt 13.1.6单片机多机通信.txt
#include
#define uchar unsigned char
#define SLAVE 0x02
#define NUMB 16
uchar idata rbuffer[16]
uchar idata tbuffer[16]={“master transmit”}
void error(void)
{
SBUF=0xff;
whi
www.eeworm.com/read/303218/13820208
txt one.txt
06年南开上机题
1: 第1题 m个人的成绩存放在score数组中,请编写函数fun,它的功能是:将低于平均分的人作为函数值返回,将低于平均分的分数放在below所指定的函数中。
答案:
int fun(int score[],int m,int below[])
{
int i,k=0,aver=0;
for(i=0;i<m;i++)
aver+=score[i];
www.eeworm.com/read/303047/13823303
c sh102.c
#include
#define uint unsigned int
sbit gate1=P2^0; // 定义P2-0口
sbit gate2=P2^1; // 定义P2-1口
sbit gate3=P2^2; // 定义P2-2口
sbit gate4=P2^3; // 定义P2-3口
void main(v