Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Could help beginer C++ users

Could help beginer C++ users

Posts 1–8 of 8 · Page 1 of 1
SK
skittlznick2
Could help beginer C++ users
When i just started learning C++ i made a crappy Blackjack game.
This could help on what some functions do.

Ignore the pictures they got messed up when i pasted the code down...

But i made it where if you lose in any way the skull comes up.If you draw the alien flips you off.And if you win it flashes multiple colors and a girl comes up.

Heres the code:
Code:
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <windows.h>

using namespace std;

int getCard () {
	return (rand () % 10)+2;
}

void skull () {

	cout << "                               ...----....                          " << endl;
    cout << "                           ..-:"''         ''"-..                   " << endl;
    cout << "                       .-'                      '-.                 " << endl;
    cout << "                    .'              .     .       '.                " << endl;
    cout << "                  .'   .          .    .      .    .''.             " << endl;
    cout << "                 .'  .    .       .   .   .     .   . ..:.          " << endl;
    cout << "              .' .   . .  .       .   .   ..  .   . ....::.         " << endl;
    cout << "             ..   .   .      .  .    .     .  ..  . ....:IA.        " << endl;
    cout << "            .:  .   .    .    .  .  .    .. .  .. .. ....:IA.       " << endl;
    cout << "           .: .   .   ..   .    .     . . .. . ... ....:.:VHA.      " << endl;
    cout << "           '..  .  .. .   .       .  . .. . .. . .....:.::IHHB.     " << endl;
    cout << "          .:. .  . .  . .   .  .  . . . ...:.:... .......:HIHMM.    " << endl;
    cout << "         .:.... .   . ."::"'.. .   .  . .:.:.:II;,. .. ..:IHIMMA    " << endl;
    cout << "         ':.:..  ..::IHHHHHI::. . .  ...:.::::.,,,. . ....VIMMHM    " << endl;
    cout << "        .:::I. .AHHHHHHHHHHAI::. .:...,:IIHHHHHHMMMHHL:. . VMMMM    " << endl;
    cout << "      .:.:V.:IVHHHHHHHMHMHHH::..:" .:HIHHHHHHHHHHHHHMHHA. .VMMM.   " << endl;
    cout << "      :..V.:IVHHHHHMMHHHHHHHB... . .:VPHHMHHHMMHHHHHHHHHAI.:VMMI    " << endl;
    cout << "      ::V..:VIHHHHHHMMMHHHHHH. .   .I":IIMHHMMHHHHHHHHHHHAPI:WMM   " << endl;
    cout << "     ::". .:.HHHHHHHHMMHHHHHI.  . .:..I:MHMMHHHHHHHHHMHV:':H:WM    " << endl;
    cout << "      :: . :.::IIHHHHHHMMHHHHV  .ABA.:.:IMHMHMMMHMHHHHV:'. .IHWW    " << endl;
    cout << "      '.  ..:..:.:IHHHHHMMHV" .AVMHMA.:.'VHMMMMHHHHHV:' .  :IHWV   " << endl;
    cout << "      :.  .:...:".:.:TPP"   .AVMMHMMA.:. "VMMHHHP.:... .. :IVAI  " << endl;
    cout << "     .:.   '... .:"'   .   ..HMMMHMMMA::. ."VHHI:::....  .:IHW'   " << endl;
    cout << "      ...  .  . ..:IIPPIH: ..HMMMI.MMMV:I:.  .:ILLH:.. ...:I:IM     " << endl;
    cout << "      : .   .'"' .:.V". .. .  :HMMM:IMMMI::I. ..:HHIIPPHI::'.P:HM.    " << endl; 
    cout << "    :.  .  .  .. ..:.. .    :AMMM IMMMM..:...:IV":T::I::.".:IHIMA " << endl;
    cout << "    'V:.. .. . .. .  .  .   'VMMV..VMMV :....:V:.:..:....::IHHHMH     " << endl;
    cout << "    "IHH:.II:.. .:. .  . . . " :HB"" . . ..PI:.::.:::..:IHHMMV"    " << endl;
    cout << "     :IP""HHII:.  .  .    . . .'V:. . . ..:IH:.:.::IHIHHMMMMM"     " << endl;
    cout << "       :V:. VIMA:I..  .     .  . .. . .  .:.I:I:..:IHHHHMMHHMMM     " << endl;
    cout << "      :"VI:.VWMA::. .:      .   .. .:. ..:.I::.:IVHHHMMMHMMMMI     " << endl;
    cout << "      :."VIIHHMMA:.  .   .   .:  .:.. . .:.II:I:AMMMMMMHMMMMMI     " << endl;
    cout << "       :..VIHIHMMMI...::.,:.,:!"I:!"I!"I!"V:AI:VAMMMMMMHMMMMMM' " << endl;
    cout << "       ':.:HIHIMHHA:"!!"I.:AXXXVVXXXXXXXA:."HPHIMMMMHHMHMMMMMV   " << endl;
    cout << "         V:H:I:MA:W'I :AXXXIXII:IIIISSSSSSXXA.I.VMMMHMHMMMMMM       " << endl;
    cout << "           'I::IVA ASSSSXSSSSBBSBMBSSSSSSBBMMMBS.VVMMHIMM'"'       " << endl;
    cout << "            I:: VPAIMSSSSSSSSSBSSSMMBSSSBBMMMMXXI:MMHIMMI           " << endl;
    cout << "           .I::. "H:XIIXBBMMMMMMMMMMMMMMMMMBXIXXMMPHIIMM'          " << endl;
    cout << "           :::I.  ':XSSXXIIIIXSSBMBSSXXXIIIXXSMMAMI:.IMM            " << endl;
    cout << "           :::I:.  .VSSSSSISISISSSBII:ISSSSBMMB:MI:..:MM            " << endl;
    cout << "           ::.I:.  ':"SSSSSSSISISSXIIXSSSSBMMB:AHI:..MMM.          " << endl;
    cout << "           ::.I:. . ..:"BBSSSSSSSSSSSSBBBMMMB:AHHI::.HMMI          " << endl;
    cout << "           :..::.  . ..::":BBBBBSSBBBMMMB:MMMMHHII::IHHMI          " << endl;
    cout << "           ':.I:... ....:IHHHHHMMMMMMMMMMMMMMMHHIIIIHMMV"          " << endl;
    cout << "            "V:. ..:...:.IHHHMMMMMMMMMMMMMMMMHHHMHHMHP'            " << endl;
    cout << "              ':. .:::.:.::III::IHHHHMMMMMHMHMMHHHHM"              " << endl;
    cout << "               "::....::.:::..:..::IIIIIHHHHMMMHHMV"              " << endl;
    cout << "                 "::.::.. .. .  ...:::IIHHMMMMHMV"                " << endl;
    cout << "                   "V::... . .I::IHHMMV"'                         " << endl;
    cout << "                     '"VHVHHHAHHHHMMV:"'                          " << endl;
        


}


void flipoff () {            
	cout << "      .--.   ||   " << endl;
	cout << "     /    \ _||  " << endl;
	cout << "     q .. p \ /  " << endl;
	cout << "      \--/  //   " << endl;
	cout << "     __||__//     " << endl;
	cout << "   /.    _/       " << endl;
	cout << "   // \  /       " << endl;
	cout << "  //   ||         " << endl;
	cout << "  \\  /  \     " << endl;
	cout << "   )\|    |      " << endl;
	cout << "  / || || |       " << endl;
	cout << "  |/\| || |      " << endl;
	cout << "     | || |       " << endl;
	cout << "     \ || /      " << endl;
	cout << "   __/ || \__    " << endl;
	cout << "  \____/____/   " << endl;
}

void woo () {
	cout << " .==================================================================. " << endl;
	cout << " ||    ( )              ( )                ( )              ( )    || " << endl;
	cout << " |'================================================================'| " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                  .::::.                        || " << endl;
	cout << " ||                                .::::::::.                      || " << endl;
	cout << " ||                                :::::::::::                     || " << endl;
	cout << " ||                                ':::::::::::..                  || " << endl;
	cout << " ||                                 :::::::::::::::'               || " << endl;
	cout << " ||                                  ':::::::::::.                 || " << endl;
	cout << " ||                                    .::::::::::::::'            || " << endl;
	cout << " ||                                  .:::::::::::...               || " << endl;
	cout << " ||                                 ::::::::::::::''               || " << endl;
	cout << " ||                     .:::.       '::::::::''::::                || " << endl;
	cout << " ||                   .::::::::.      ':::::'  '::::               || " << endl;
	cout << " ||                  .::::':::::::.    :::::    '::::.             || " << endl;
	cout << " ||                .:::::' ':::::::::. :::::      ':::.            || " << endl;
	cout << " ||              .:::::'     ':::::::::.:::::       '::.           || " << endl;
	cout << " ||            .::::''         '::::::::::::::       '::.          || " << endl;
	cout << " ||           .::''              '::::::::::::         :::...      || " << endl;
	cout << " ||        ..::::                  ':::::::::'        .:' ''''     || " << endl;
	cout << " ||     ..''''':'                    ':::::.'                      || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " ||                                                                || " << endl;
	cout << " |'================================================================'| " << endl;
}

int main () {

    system ("COLOR 0A");

	int playerhand = 0;
	int dealerhand = 0;
	int card;
	int option = 1;

	srand( time(0) );

	playerhand += getCard();
	playerhand += getCard();

	dealerhand += getCard ();
	dealerhand += getCard ();

	while ( dealerhand <= 15 ) {
		dealerhand += getCard ();
	}
		
	// option 1: hit
	// option 2: stay
	while ( option != 2 && playerhand < 21 ) {
		cout << "Your Hand: " << playerhand << endl;
		cout << "What would you like to do?" << endl;
		cout << "1 (Hit) or 2 (Stay): " << endl;
		cin >> option;

		if (option==1){
			playerhand += getCard ();
		}
	}


	if (playerhand == 21) {
		woo ();
		//cout << "You Win!!!!" << endl;
	
        for (int i=0; i<10; i++) {
			cout << "You Win with a 21!!!!" << endl;
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
		}
	}

	 else if (dealerhand == 21) {
        skull ();
		cout << "You Lose!!!! HAHA YOU SUCK!" << endl;
	}

	  else if ( playerhand == dealerhand) {
		flipoff ();
		cout <<  "YOU DRAW!!!!" << endl;
	}

	  else if ( playerhand > dealerhand && playerhand <= 21) {
        woo ();
		cout << "You Win" << endl;
	
          for (int i=0; i<10; i++) {
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
			system ("COLOR 0F");
			system ("COLOR A0");
			system ("COLOR F0");
			system ("COLOR 0A");
		}
	}

	 else if ( playerhand < dealerhand) {
		skull ();
		cout << "You Lose!!! HAHA YOU SUCK" << endl;
	}

	 else if (playerhand > 21) {
        skull ();
		cout << "BUST! You Lose with a hand of " << playerhand << "!!!" << endl;
	}

	 else if (dealerhand > 21) {
		cout << "Dealer Got BUST You Win!!!" <<endl;
	}

	system ("PAUSE");
	return 0;
}
#1 · edited 18y ago · 18y ago
dkzeria
dkzeria
lol <3 the images but i cant run it :\
#2 · 18y ago
GOD
GOD
i cant run it lol... something is wrong..

and lol at the pics
#3 · 18y ago
EL
elitetech
Did you guys see the compile errors? Try to fix it this will be great practice for you.
#4 · 18y ago
SK
skittlznick2
To fix most of these errors you can fix the images yourself might take awhile tho.Other than that its perfect i just ran it.
#5 · 18y ago
SC
scapecoolioboy
lmao wierd i cant run nice pics
#6 · 18y ago
SK
skittlznick2
The only reason you cant run it is because of the jacked up pictures.

Fix them if you wanna run or forget the pictures and just sutdy the commands.
#7 · 18y ago
SC
scapecoolioboy
okay but it took me like 50 mins to move it all my first progam in c++ lol
#8 · 17y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • [Please Sticky] Numpad Help For Laptop UsersBy Acen in Combat Arms Hacks & Cheats
    46Last post 17y ago
  • [Help] paint.net users..By Tyler930 in Combat Arms Mod Discussion
    4Last post 16y ago
  • Hi guys I was wondering if you could help me out :)By realboy in Member Introduction & Return
    4Last post 16y ago
  • Im so Noobb! anyone could help a feloow hackerBy kingking12 in Combat Arms Help
    5Last post 16y ago
  • [SOLVED]is there anyone someone could help me get unbanned from mw2 multiplayerBy Devin7713 in Call of Duty Modern Warfare 2 Help
    8Last post 16y ago

Tags for this Thread

#beginer#users