当前位置:网站首页>c语言简单的登录
c语言简单的登录
2022-06-26 20:09:00 【the best b】
我这个登录仅限在我已学的知识中,这段代码我自己鼓捣了快半个小时,然后找错误找了半个多小时,最后还是在大佬志哥细心的观察下一眼看到了问题所在,虽然这个代码写得不算好吧,但也是我在c语言的迈开的一小步了。
#include<stdio.h>
int main(){
int number=0;
int count=0;
printf("请输入账户:");
scanf("%d",&number);
while(number==10){
printf("请输入密码:");
scanf("%d",&count);
if (count==10){
printf("登录成功") ;}
else
printf("请重新输入:") ;
return 0;
}
}边栏推荐
猜你喜欢

慕课11、微服务的用户认证与授权

论数据库的传统与未来之争之溯源溯本----AWS系列专栏

Six necessary threat tracking tools for threat hunters

Minimum spanning tree, shortest path, topology sorting, critical path

uni-app使用canvas绘制二维码

On the origin of the dispute between the tradition and the future of database -- AWS series column

抖音实战~分享模块~短视频下载(保存到相册)

Dynamic planning 111

Basic and necessary common plug-ins of vscade

Three basic backup methods of mongodb
随机推荐
MySQL - database creation and management
Minimum spanning tree, shortest path, topology sorting, critical path
网上办理中金财富开户安全吗?
Development of NFT for digital collection platform
Successfully solved the problem of garbled microservice @value obtaining configuration file
Web resource preloading - production environment practice
Super VRT
Unity - URP get camera stack
案例描述:比赛分数管理系统,需要统计历届冠军所得比赛得分,并记录到文件中,其中系统有如下需求:- 打开系统有欢迎界面,并显示可选择的选项- 选项1:记录比赛得分- 选项2:查看往届
浏览器的垃圾回收机制
Keep alive cache component in Vue
Tiktok practice ~ sharing module ~ generate short video QR code
开发者调查:Rust/PostgreSQL 最受喜爱,PHP 薪水偏低
515. find the maximum value in each tree row
On the escape of inequality value
When does the mobile phone video roll off?
JS mobile terminal touch screen event
710. 黑名单中的随机数
证券开户安全吗,有没有什么危险呢
Using cache in vuex to solve the problem of data loss in refreshing state