⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginshow.h

📁 用C++实现的一个职工工资管理系统
💻 H
字号:
#ifndef LOGINSHOW_H
#define LOGINSHOW_H

#include <iostream>
#include <string>
#include <process.h>
#include <iomanip>

using namespace std;

void loginShow()
{
   char line[]={"━━━━━━━━━━"};
   char bar[]={"...."};
   int ii,j,k=0,x=0,yy=0;    
   for(ii=1;ii<=strlen(line)/2;)
   {
       system("cls");
       for(j=0;j<9;j++)   //改变行坐标
           cout<<endl;
       for(j=0;j<(75-strlen(line))/2;j++) //改变列坐标
           cout<<" ";
       for(j=1;j<=ii;j++)            //进度显示器
           cout<<"■";
       for(x=strlen(line)/2;x>ii;x--)
           cout<<"□";
       if(k==4)
           ii++;
       cout<<endl;    
       for(j=0;j<(75-strlen(line))/2;j++)    //行坐标定位
           cout<<" ";
       cout<<line;            //输出线条
       cout<<endl;
       for(j=0;j<(65-strlen(bar))/2;j++)
           cout<<" ";
       cout<<(ii-1)*10<<"% Loading";
       cout.write(bar,k);
       cout<<endl;
       for(j=0;j<10;j++)
           cout<<endl;
       for(j=0;j<24;j++)
           cout<<" ";
       cout<<"      ** 欢迎使用! **"<<endl;
       for(j=0;j<24;j++)
           cout<<" ";
       for(j=0;j<=12;j++)
           cout<<"─";
       cout<<endl;
       for(j=0;j<1000;j++);   //延时效果
       k++;
       if(k>4)
           k=0;
   }
    system("cls");   //清屏函数

}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -