Vcoderz Community

Vcoderz Community (http://forum.vcoderz.com/index.php)
-   Computers & Information Technologies (http://forum.vcoderz.com/forumdisplay.php?f=6)
-   -   A program I wrote last night after new year eve... (http://forum.vcoderz.com/showthread.php?t=17412)

Google 01-01-2010 05:29 AM

A program I wrote last night after new year eve...
 
Code:

// File name: PincaColada.cpp
// Author: Edgard Chammas
// Disclaimer: Keep two things in mind:
//        1- Don't compile while you're drunk.
//        2- The author will not hold any responsibility
//        for whatever might happens after you execute
//        this program since he is from Lebanon...
// Advisory: Parental advisory, explicit content
// Preface: I dedicate this program for my wife and my
// 3.00 children. I love you! <3

#include <windows.h> // <3
#include <ctime> // NoICantSeeTime! >_>
#include <iostream> // Feyet/Tale3
using namespace std; // 2esTiDi! :D
#include <cassert> // Always check your poket! ;)

#define NewYearEve(aret, seker, wta2, hanak, w2ekel, hawa, wtebwis, wle3eb, wte7shish, wshereb, wPinaColada, wej3ir, wsex, w2osas, w2alla, yestor, chou, ba3ed, fi, haraket, manyakeh, sterou, masheftou, menna, ya, jame3a) wej3ir##wsex##masheftou##jame3a //?. Mbala shefna kell shi...
#define Celebrate NewYearEve(y,e,n,t,e,k, ,3,a,l, ,m,a,n,e,y,e,k, ,j,a,m,i,3,a,n)

bool TestFawwetle( char [] );
void Tsalla_shway( unsigned );
void Zammer ( unsigned );

char Celebrate()
{
    char fawwetle[64] = "fadeh...";
    system( "@echo off" );
    system( "color 0a" );
    unsigned bel_3ared = GetSystemMetrics  ( SM_CXSCREEN ) - 1;
    unsigned bel_toul  = GetSystemMetrics  ( SM_CYSCREEN ) - 1;
    srand( time( 0 ) ); // Tombola! :D
    cout << "\nF5 is needed here to stop \"manyakeh\"..." << endl;
    while( !GetAsyncKeyState( VK_F5 ) ) // Kill any bastard in one button!
    {
      SetCursorPos( (rand() % bel_3ared ) + 1, ( rand() % bel_toul ) + 1 );
      Beep( rand(), 15 ); // Miaw!!!
    }
    system( "ver" );
    cout << "\nWhere did you spend the new year eve 2010?\n";
    cin >> fawwetle;
    Tsalla_shway ( 2000 );
    cout << "Hmmm...\n";
    Tsalla_shway ( 3000 );
    if( TestFawwetle ( fawwetle ) )
    {   
        cout << "It doesn't matter...\n";
        Tsalla_shway ( 1500 );
        cout << "Let me tell you what...\n";
        Tsalla_shway ( 1500 );
        cout << "Whenever you was, I hope you enjoyed \"habeltak\" ! :)\n";
        Tsalla_shway ( 1500 );
        cout << "Happy New year! :D\n";
        Zammer ( 3 );
    }
    else { cout << "Stop it! Don't make me puke my PinaColada!\n"; }
    cin.ignore( cin.rdbuf()->in_avail() + 1 );
    return '\x00';
}

bool TestFawwetle ( char fawwetle[] )
{
    return ( strlen( fawwetle ) < 128 );
}

void Tsalla_shway ( unsigned wa2et )
{
    double mou2akkat = clock() + wa2et;
    while ( mou2akkat > clock() );
}

void Zammer ( unsigned zammour )
{
    assert( zammour > 0 );
    for ( unsigned i = 0 ; i < zammour; i++ )
    {
        Beep( 2000 , 1500 );
        Tsalla_shway ( 700 );
    }
}


Neoxter 01-01-2010 07:06 PM

nice!

after reading the code and the comments(which are hilarious lool), it looks like u were drunk while writing this program :p


Google 01-18-2010 09:27 PM

I was doing some search on Bing.com and found something that needs some explanation. :hizb:
What this piece of code, that I wrote one night while I was tipsy, has to do on the main page of this website! :crazy:

SysTaMatIcS 01-18-2010 10:19 PM

barki mfakreena a picture for pina collada w 7ateen l code lool

Neoxter 01-18-2010 10:31 PM

one of those three:

1-this is a prank being played by you :p
2-a friend of yours hacked into this guy's website and posted this code there.
3-the owner of the site is a complete n00b and doesn't know shit abt websites and he put that code there by some chance he found it..

Kingroudy 01-18-2010 10:50 PM

HAHAHAHAHAHAHAHA this crap is funny!!

Google 01-18-2010 10:59 PM

Quote:

Originally Posted by Neoxter (Post 207735)
one of those three:

1-this is a prank being played by you :p
2-a friend of yours hacked into this guy's website and posted this code there.
3-the owner of the site is a complete n00b and doesn't know shit abt websites and he put that code there by some chance he found it..


1- Nope. Why would I do that. Why would I place that code especially on that website and on that specific place. :huh:
2- Maybe, but what's the point? I didn't even know about it until I saw it today as one of Bing.com results. :inno:
3- I don't think that he's noob. And if he was, it's impossible for him to be that much stupid! In the worst cases, he should have noticed what he did!:think:


Quote:

Originally Posted by Google (Post 207735)
4- My girlfriend is trying to surprise me.

I don't have a girlfriend. :p


All times are GMT +1. The time now is 09:22 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger