当前位置:网站首页>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;
}
}边栏推荐
猜你喜欢

Project practice 6: distributed transaction Seata

MySQL - table creation and management

抖音实战~分享模块~生成短视频二维码

Installation and use of logstash

Boot指标监测

(树) 树状数组

抖音实战~首页视频~下拉刷新

Guomingyu: Apple's AR / MR head mounted display is the most complicated product in its history and will be released in January 2023

MySQL recharge

Uni app uses canvas to draw QR code
随机推荐
問題解决:虛擬機無法複制粘貼文件
Gd32 USB composite device file descriptor
网上开户万一免五到底安不安全?
Is it safe to open an account for CICC Wealth Online?
IK分词器
Pinda general permission system (day 3~day 4)
西瓜书重温(七): 贝叶斯分类器(手推+代码demo)
Feign remote call
Good thing recommendation: mobile terminal development security tool
数据库SQL语句撰写
MySQL中存储过程的详细详解
On the origin of the dispute between the tradition and the future of database -- AWS series column
Arduino UNO + DS1302利用31字节静态RAM存储数据并串口打印
The successfully resolved idea cannot use the log normally after referencing Lombok's @slf4j
Unity - URP get camera stack
Analysis on development technology of NFT meta universe chain game system
证券开户安全吗,有没有什么危险呢
Project practice 4: user login and token access verification (reids+jwt)
Some basic mistakes
515. find the maximum value in each tree row