代码搜索:while
找到约 10,000 项符合「while」的源代码
代码结果 10,000
www.eeworm.com/read/428887/8831300
c gc.c
/* 22nov07abu
* (c) Software Lab. Alexander Burger
*/
#include "pico.h"
/* Mark data */
static void mark(any x) {
cell *p;
while (num((p = cellPtr(x))->cdr) & 1) {
*(word*)&cdr(p) &=
www.eeworm.com/read/285490/8835927
_shift
#!/bin/sh
while [ "$1" != "" ]; do
echo "$1"
shift
done
exit 0
www.eeworm.com/read/285187/8863046
cpp graph3.cpp
//图的运算的实现文件graph3.cpp
#include"graph3.h"
//构造函数,初始化图的邻接矩阵与边集数组
adjMList::adjMList(RCW GE[],int n,int e)
{int i,j;
for(i=0; i
www.eeworm.com/read/384531/8863132
txt 21-30.txt
【程序21】
题目:猴子吃桃问题:猴子第一天摘下若干个桃子,当即吃了一半,还不瘾,又多吃了一个
第二天早上又将剩下的桃子吃掉一半,又多吃了一个。以后每天早上都吃了前一天剩下
的一半零一个。到第10天早上想再吃时,见只剩下一个桃子了。求第一天共摘了多少。
1.程序分析:采取逆向思维的方法,从后往前推断。
2.程序源代码:
main()
{
int day,x1,x2;
...
www.eeworm.com/read/428483/8864481
c 2.c
#include
sbit K1=P3^0;
sbit L1=P1^0;
void main(void)
{
while(1)
{
if(K1==0)
{
L1=0; //灯亮
}
else
{
L1=1; /
www.eeworm.com/read/428483/8864747
c 8.c
#include
sbit P3_7=P3^7;
unsigned char count;
void delay10ms(void)
{
unsigned char i,j;
for(i=20;i>0;i--)
for(j=248;j>0;j--);
}
void main(void)
{
while(1)
{
www.eeworm.com/read/428483/8864794
c 12.c
#include
sbit P3_6=P3^6;
sbit P3_7=P3^7;
unsigned char curcount;
void delay10ms(void)
{
unsigned char i,j;
for(i=20;i>0;i--)
for(j=248;j>0;j--);
}
void main(void)
{
www.eeworm.com/read/428483/8864934
c 10.c
#include
sbit P3_7=P3^7;
unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,
0x6d,0x7d,0x07,0x7f,0x6f};
unsigned char Count;
void delay10ms(void)
{
www.eeworm.com/read/428343/8875765
c test3.c
PROGRAM boucleinfinie
VAR i;
i := 1;
WHILE 1=1 DO
BEGIN
PRINT i;
i := i+1;
END
www.eeworm.com/read/428242/8881765
cpp sort.cpp
/* Copyright (C) 1999 Lucent Technologies */
/* From 'Programming Pearls' by Jon Bentley */
/* sort.cpp -- test and time sorting algorithms
Input lines: algnum n mod
Output lines: algnum n mod