Skip to main content

Sam's year debugger in C++

Programming is fun if you have the passion and time for it.  I became bored,  quarantined in my place,  scripted some codes in C++.  Only if they would come to reality. If you are aware of Artificial Intelligence,  this may entice you.  Let's have some fun fellow geeks,  copy and run in your devices.  The good thing is that you can even run it on your Android device but of course with a special editor app called CppDroid.  Leave a comment or question in the comments section below.

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

using namespace std;
int main()
{
int year,future;
    char reb,skip;
    string user;
    cout<<"Enter first name: ";
    getline(cin,user);
   cout<<endl<<endl<<"Welcome to Sam's year debugger"<<endl;

cout<<"You are logged in as "<<user<<endl;
    yenter:
    cout<<endl<<"Enter current year: ";
cin>>year;
    if(year!=2020)
    {if(year<2020)
    {cout<<year<<" cannot be the current year!";goto yenter;}
    else
    {cout<<endl<<"Checking bugs in "<<year<<endl<<"Debug complete!!"<<endl<<endl;
        cout<<year<<" is ok"<<endl;}}
else
    {cout<<endl<<"Am sorry "<<user<<",but "<<year<<" is not compatible for humans, do you wish to skip this year? (y/n)...";
        cin>>skip;
        if(skip=='y')
        {
        futurerep:
        cout<<endl<<"Enter the year in future you wish to jump to: ";
        cin>>future;
        if(future==2020||future<2020)
        {cout<<endl<<"You cannot select "<<future<<endl<<endl;
                cout<<"Please Re-enter future year again"<<endl;goto futurerep;}
            else
            {cout<<endl<<"Checking  "<<future<<" statistics"<<endl<<endl;
                cout<<future<<"  loading..."<<endl<<"100%loaded"<<endl<<endl;
                cout<<"Welcome "<<user<<" to "<<future;}
        }
            else if(skip=='n')
        {
cout<<endl<<"Do you wish to reboot this year?(y/n)...";
cin>>reb;
if(reb=='y')
{
cout<<endl<<"Rebooting 2020..."<<endl<<"Cleaning viruses..."<<endl<<"Alert!! COVID-19 Detected!!!"<<endl;
cout<<endl<<"COVID-19 Cleared out of memmory!"<<endl;
cout<<endl<<"Desert Locusts detected!!"<<endl<<"Cleaning Locusts"<<endl<<"100% Locusts cleaned"<<endl;
cout<<endl<<endl<<"Initillizing 2019 recovery mode..."<<endl<<"Loading 2019 goodies"<<endl<<"2019 recovery and load complete!!"<<endl<<endl;
                cout<<user<<", welcome back to 2019!!";
            }
else
{
cout<<year<<" cant load, body system may crush!";}
}}
    return 0;}

Comments

Popular posts from this blog

ACTIVATING MS OFFICE WITHOUT KEY

Step1 Open cmd as admin Step2 copy office directory Step3  Go to office directory, type cd on cmd then paste the office directory you copied e.g., for a 64-bit machine it will look like this. cd C:\Program Files (x86)\Microsoft Office\Office16 Step4 Type in the following commands into cmd then hit enter after every command: cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 cscript ospp.vbs /unpkey:BTDRB >nul cscript ospp.vbs /unpkey:KHGM9 >nul cscript ospp.vbs /unpkey:CPQVG >nul cscript ospp.vbs /sethst:kms8.msguides.com cscript ospp.vbs /setprt:1688 cscript ospp.vbs /act METHOD 2 Copy script https://gist.github.com/amitbd1508/fe64e926005c85d424e8e79a943b3b60 @echo off title Activate Microsoft Office 2019 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================...

HOW TO ACTIVATE WINDOWS 10 USING CMD

  Don't have the original windows product key?  Follow the steps below. You must be connected to the internet to work. Don't forget to subscribe to my YouTube channel  here Video Tutorial Please note, DON NOT include the quotation marks, i.e "" have used them to show the beginning and end of the commands. Step 1: Open cmd as admin Step 2: Install KMS client key Use the command “slmgr /ipk your license key ” to install a license key (your license key is the activation key that corresponds to your Windows edition).  The following is the list of Windows 10 Volume license keys. Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH Home Country Specific: PVMJN-6DFY6-9CCP6-7BKTT-D3WVR Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9 Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43 Enter...

WMIC COMMAND IN WINDOWS || GET PROCESSOR, DISK AND RAM INFORMATION USING CMD WMIC COMMAND

INTRODUCTION The Windows Management Instrumentation Command-line (WMIC) is a powerful command-line tool in Windows that allows you to interact with WMI (Windows Management Instrumentation) to manage system settings and retrieve information about the operating system, hardware, and installed software. Here are some common usages of the WMIC command: 1. Get System Information : wmic os get caption, version, osarchitecture This retrieves the operating system's name, version, and architecture. 2. List Installed Software : wmic product get name, version This shows a list of installed programs along with their versions. 3. Get CPU Information : wmic cpu get name, numberofcores, maxclockspeed 4. Get Disk Drive Information: wmic diskdrive get model, size 5. Check hard drive status: wmic diskdrive get status 6. Get Network Adapter Information: wmic nic get name, macaddress 7. Get Running Processes: wmic process get name, processid 8. Shut Down the System: wmic os shutdown 9. Check System Up...