1. 程式人生 > >分享給大家一個比較裝逼的小程式碼

分享給大家一個比較裝逼的小程式碼

大家寫完一個比較大的程式,然後讓它執行時,我們都知道 .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:     ");

前戲結束,最後你的程式閃亮登場

這裡寫圖片描述

希望大家喜歡~