代码搜索:while
找到约 10,000 项符合「while」的源代码
代码结果 10,000
www.eeworm.com/read/407541/11417113
cpp 输入字符串 ,统计单词 字母 数字个数.cpp
#include /**/
void main()
{
printf("\n\t输入字符串 (Ctrl+z(^z)结束) ,统计单词(用空白符隔开)、字母、数字个数\n\n");
while(1)
{char c,ch;
int alphabets=0,numbers=0,characters=0,words=0;
printf("\n 输入字符串:
www.eeworm.com/read/407541/11417123
cpp 1~n的累加和 dowhile-dowhile嵌套.cpp
#include /**/
void main()
{
printf("\n\t求1~n(n
www.eeworm.com/read/407541/11417132
cpp 两数比大小1.cpp
#include /*两数比大小*/
void main()
{
float x,y;
printf("\n");
printf("\tInput two number输入两个数(任意一数为0时结束)比大小\n\n");
printf(" 请输入两个数: ");
scanf("%f%f",&x,&y); //输入第一个数非数值时死循环?
w
www.eeworm.com/read/407541/11417134
cpp +-×÷ 随机数 switch错例.cpp
#include //导入包含I/O函数的头文件stdio.h
#include //导入包含随机数函数的头文件stdlib.h
#include //导入 的头文件time.h
void main()
{
char c;
int x,y,z,n,m;
printf("\n\t四则运算,
www.eeworm.com/read/407541/11417141
cpp 字符串中的数字串 275.cpp
#include
void main()
{
printf("\n\t\t输入字符串,把其中的数字组成新数字串输出\n");
printf("───────────────────────────────────────\n");
while(1)
{
char a[50],b[50],*p1=a,*p2=b;
printf(" 输入待处理
www.eeworm.com/read/407541/11417142
cpp y 字符串大小写英文字母转换.cpp
/**/
#include //导入包含I/O函数的头文件stdio.h
void main()
{
printf("\n\t输入字符串,大写字母变小写,小写字母变大写后输出\n\n");
while(1)
{
printf(" 输入字符串: \n");
int i=0;
char a[50];
while(1)
{
www.eeworm.com/read/407541/11417145
cpp +减法练习 函数 错误.cpp
#include //导入包含I/O函数的头文件stdio.h
#include //导入包含随机数函数的头文件stdlib.h
#include //导入 的头文件time.h
int subtraction(int x2,int y2) //定义减法函数,返回整型值,整型形参
{
int
www.eeworm.com/read/407541/11417146
cpp 一维无序数组中顺序查找某数.cpp
/**/
#include //导入包含I/O函数的头文件stdio.h
#include //导入包含随机数函数的头文件stdlib.h
#include //导入 的头文件time.h
void main()
{
printf("\n\t在无序数组中顺序查找某数\n\n");
whil
www.eeworm.com/read/407541/11417148
cpp 三个数比大小 选择排序.cpp
#include /**/
void main()
{
int x,y,z,temp;
printf("\n");
printf(" 输入x,y,z的值(任意一值为0时结束)比大小: \n\n");
printf(" 输入x,y,z的值: ");
scanf("%d%d%d",&x,&y,&z);//为什么输入非数值时死循环?
while(x
www.eeworm.com/read/407531/11417818
txt symtable.txt
if if
else else
while while
int int
float float
main id
( (
) )
{ {
i id
; ;
k id
sum id
= =
50 num
0 num
relop
2 num
} }
>= rel