当前位置:网站首页>7.7(5)
7.7(5)
2022-08-03 05:11:00 【tt142】
我发现学编程真的真的很需要极其强大的清晰头脑还有逻辑分析,你要比较一个让你执行的任务怎么做最省时间又可读,还有如果进行很复杂的程序怎么建立逻辑
越发觉得全民普及计算机的说法简直可笑
总结一下今天学了do while语句和for循环的第二个变种以及4个实际应用题,一共花了五六个小时吧,性价比低到离谱,但是有两道我自己是有思路的,只是实际代码细节瘸腿,不能100%做好
今天的代码块就写dowhile打印1-10,还有模拟用户登录场景,三次不对退出登录
int main()
{
int a = 1;
do
{
printf("%d ",a);
a++;
}
while(a<=10);
return 0;
}
#include <stdlib.h>
#include <string.h>
#include <windows.h>
int main()
{
int a = 0;
char i[20] = {0};
for(a=1;a<3;a++)
{
if(strcmp(i,"123456") == 0)
{
printf("登录成功");
break;
}
else
{
Sleep(1000);
printf("密码错误请重试");
system("cls");
}
}
if(a=3)
{
printf("退出登录");
}
return 0;
}
边栏推荐
- Ali cloud object storage oss private barrels to generate links
- Tag stack - stack monotonically preparatory knowledge - lt. 739. The daily temperature
- ss-4.2 多个eureka集群案例
- 安装IIS服务(Internet信息服务(Internet Information Services,简写IIS,互联网信息服务)
- 【Biotin Azide|cas:908007-17-0】Price_Manufacturer
- typescript39-class类的可见修饰符
- Install IIS services (Internet Information Services (Internet Information Services, abbreviated IIS, Internet Information Services)
- 嵌入式-I2C-物理电路图
- Talking about GIS Data (6) - Projected Coordinate System
- C# async and multithreading
猜你喜欢
Install IIS services (Internet Information Services (Internet Information Services, abbreviated IIS, Internet Information Services)
13.
lt.647. Palindromic substring + lt.516. Longest palindrome subsequence 【特征选取】计算数据点曲率
数据分析 第一篇
typescript45-接口之间的兼容性
2. 两数相加
用scikit-learn学习谱聚类
Coordinate knowledge in digital twin campus scenarios
嵌入式-I2C-物理电路图
第四次培训
随机推荐
1230: 蜂巢
4.如何避免缓存穿透、缓存击穿、缓存雪崩
Tag stack - stack monotonically preparatory knowledge - lt. 739. The daily temperature
typescript47-函数之间的类型兼容性
typescript49-交叉类型
Djiango第四次培训笔记
shell script loop statement
Response 重写设置返回值
Ali cloud object storage oss private barrels to generate links
typescript46-函数之间的类型兼容性
typescript42-readonly修饰符
Presto installation and deployment tutorial
斐讯K2路由编译Padavan华硕固件和心得
breed Web刷机升级详细教材修正编译器固件说明_itkeji.top
dataframe插入一列
业务表解析-余额系统
Pr第四次培训笔记
第四次培训
内部类、static关键字、final
1094 谷歌的招聘 (20 分)