分享给大家一个比较装逼的小代码

版权声明:不积跬步无以至千里,愿与君共勉! https://blog.csdn.net/Crazy_Tengt/article/details/72804184

大家写完一个比较大的程序,然后让它运行时,我们都知道 .c文件在执行时是很快的,那么就不能够体现我们所写的程序是很大很复杂的,那么如何能提升这个文件的逼格呢?这时就需要借用延迟函数以及几条用来装逼的英文。
请看:

int main()
{
    printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
    printf("***********************Ready to enter***************************\n");
    sleep(0.5);
    printf("  loading date from database ...\n");
    sleep(1);
    printf("  running environment is being detected ...\n");
    sleep(2);
    printf("  install backup resources, check for updates ...\n");
    sleep(0.5);
    printf("  start importing resources ...\n");
    sleep(1);
    printf("  importing successfully !\n");
    sleep(1);
    printf("  detect external memory status ...\n");
    sleep(0.5);
    printf("  get ready !\n");
    sleep(1);
    printf("  entering ...\n");
    printf("    3...\n");
    sleep(1);
    printf("    2..\n");
    sleep(1); 
    printf("    1.\n");
    sleep(1);
    printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");    
    printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
    printf("~********************************************************************************~\n");
    printf("~  *      *      *  * * * *  *        * * *    * * *       *     *     * * * *   ~\n");
    printf("~  *      *      *  *        *       *       *       *    * *   * *    *         ~\n");
    printf("~   *     *     *   * * * *  *      *       *         *  *   * *   *   * * * *   ~\n");
    printf("~    *  *   *  *    *        *       *       *       *  *     *     *  *         ~\n");
    printf("~     *       *     * * * *  * * * *  * * *    * * *    *     *     *  * * * *   ~\n");
    printf("~********************************************************************************~\n");  
    printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
    sleep(3);
    printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

这里写图片描述

程序会逐条延迟显示,就像是正在打开一个比较大的软件一样,用来装逼在合适不过

下面是我手敲打的 WELCOME

这里写图片描述

printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
        printf("~*******************************Address List***********************************~\n");
        printf("~~~~~                                                                          ~\n");
        printf("~    *If you want to add a new member ,please enter '1'                        ~\n");                     
        printf("~      *If you want to query one number, please enter '2'                      ~\n");
        printf("~        *If you want to delete one number, please enter '3'                   ~\n");
        printf("~          *If you want to update information, please enter '4'                ~\n");
        printf("~            *If you want to print all the number, please enter '5'            ~\n");
        printf("~              *If you want to empty the address list, please enter '6'        ~\n");
        printf("~                *If you want to exit, please enter '0'                        ~\n");
        printf("~                                                                     ~~~Tengt ~\n");
        printf("~******************************************************************************~\n");  
        printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
        printf("~ *enter:     ");

前戏结束,最后你的程序闪亮登场

这里写图片描述

希望大家喜欢~

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页