#Can someone help me fix this? C++

18 messages · Page 1 of 1 (latest)

hasty barn
#

I am making a loader, and the choices are broken. Whatever you type, it goes directly to number 1, which results in it being printed "Hi"

#

Here is my current code:

#
int main()
{
    SetConsoleOutputCP(CP_UTF8);

    std::cout << "\n";
    std::cout << " ▄▄▄      ▒███████▒ █    ██ ▓█████ ▄▄▄█████▓ ██▓\n";
    std::cout << "▒████▄    ▒ ▒ ▒ ▄▀░ ██  ▓██▒▓█   ▀ ▓  ██▒ ▓▒▓██▒\n";
    std::cout << "▒██  ▀█▄  ░ ▒ ▄▀▒░ ▓██  ▒██░▒███   ▒ ▓██░ ▒░▒██▒\n";
    std::cout << "░██▄▄▄▄██   ▄▀▒   ░▓▓█  ░██░▒▓█  ▄ ░ ▓██▓ ░ ░██░\n";
    std::cout << " ▓█   ▓██▒▒███████▒▒▒█████▓ ░▒████▒  ▒██▒ ░ ░██░\n";
    std::cout << " ▒▒   ▓▒█░░▒▒ ▓░▒░▒░▒▓▒ ▒ ▒ ░░ ▒░ ░  ▒ ░░   ░▓  \n";
    std::cout << "  ▒   ▒▒ ░░░▒ ▒ ░ ▒░░▒░ ░ ░  ░ ░  ░    ░     ▒ ░\n";
    std::cout << "  ░   ▒   ░ ░ ░ ░ ░ ░░░ ░ ░    ░     ░       ▒ ░\n";
    std::cout << "      ░  ░  ░ ░       ░        ░  ░          ░  \n";
    std::cout << "          ░                                     \n\n";
    std::cout << "Please select an option; \n";
    std::cout << "[1] HWID Spoofer\n";
    std::cout << "[2] HWID Checker\n";
    std::cout << "[3] Cleaner\n\n";

    std::string input;
    std::getline(std::cin, input);

    if (input == "1" || "[1]")
    {
        std::cout << "\n";
        std::cout << "Hi";
        std::cout << "\n";
    }
    else if (input == "2" || "[2]")
    {
        std::cout << "\n";
        std::cout << "Bye";
        std::cout << "\n";
    }
    else if (input == "3" || "[3]")
    {
        std::cout << "\n";
        std::cout << "Ok";
        std::cout << "\n";
    }
    else
    {
        std::cout << "This was an invalid choice, please try again.";
    }
}
hasty barn
#

yo

#

?

fair idol
#

@hasty barn


if (input == "1" || input == "[1]")
{

}
else if (input == "2" || input == "[2]")
{

}
else if (input == "3" || input == "[3]")
{

}
else 
{

}

hasty barn
#

oh ok

hasty barn
#

do you love me like u say u do

earnest field
#

beautiful baby girl

earnest field
viral tinsel
#

i'd figure since ur a helper u would know

fair idol
#

Of course it is

#

But he also wants with "[1]"

viral tinsel
#

yh but realisticly who is gonna enter [1]

#

🤣