| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1048 人关注过本帖
标题:藏文C语言代码不显示 输入输出都是藏文怎么解决
只看楼主 加入收藏
lija007
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2018-7-24
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
藏文C语言代码不显示 输入输出都是藏文怎么解决
#include <stdio.h>
#include <time.h>
#include <windows.h>
    int main()
    {
        //密码为2
        srand(time(NULL));
        printf("---???????????AMT---\n");
        int mima = 0;
        int yzma, yzm;
        int j = 0;
        while(j < 1)
        {
         
         do
         {   
                if(mima != 0)
                {
                    printf("密码或验证码输入错误!请重新输入!\n");
                }
                int yzm = rand()%8001 + 999;
                printf("请输入密码:");
                scanf("%d",&mima);
                printf("请输入当前验证码【%d】: ",yzm);
                scanf("%d",&yzma);
               
         }while(mima != 2 && yzma != yzm);
                double mon = 0;//余额
                int monn;//存款金额
            while(j < 1)
            {
                printf("\n");
                printf("1.查询余额\t 2.存款\n3.取款\t\t 4.退出\n");
                printf("请输入你要选择的服务: ");
                scanf("%d",&yzm);
                switch(yzm)
                {
                case 1:
                printf("\n");
                printf("你当前的余额为: %lf\n",mon);
                break;
                case 2:
                printf("\n");
                printf("请放入你的存款金额: ");
                scanf("%d",&monn);
                int smonn = monn;//ATM算钱
                if(monn > 99)
                {
                    printf("提款机正在验钞\n\n");
                do
                {
                    smonn = smonn - 100;
                     printf("100\t");
                    /* sleep(1000) */
                    printf("\a");
                    
                }while(smonn >= 99);
                }
                printf("\n");
                mon = mon + monn;
                break;
                case 3:
                printf("\n");
                printf("请输入你要提取的金额: ");
                scanf("%d",&monn);
                smonn = monn;//ATM算钱
                if(monn <= mon)
                {
                    if(monn > 99)
                    {
                        printf("提款机正在验钞\n\n");
                    do
                    {
                        smonn = smonn - 100;
                        printf("100\t");
                        /* sleep(1000) */
                        printf("\a");
                        
                    }while(smonn >= 99);
                    }
                    printf("\n");
                    mon = mon - monn;
                }
                else
                {
                    printf("\a");
                    printf("余额不足无法完成操作!\n");
                }
               
                break;
                default:
                    j = 1;
                    printf("已退出,请收好你的银行卡!\n");
                break;
                }
            }
            
            
            
            
            
            
            
            
            
            
            
            
        }
        
        return 0;
    }
搜索更多相关主题的帖子: 输入 int printf while scanf 
2018-07-24 10:54
吴昊俣
Rank: 2
等 级:论坛游民
帖 子:8
专家分:20
注 册:2018-7-25
收藏
得分:20 
你可能有一个黑框在运行了
2018-07-27 11:10
快速回复:藏文C语言代码不显示 输入输出都是藏文怎么解决
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030833 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved