Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies Everything related to computers and internet.

Reply
 
Share Thread Tools Search this Thread
Old 01-01-2010   #1
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default 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 );
    }
}


__________________

Google is offline   Reply With Quote
The Following 3 Users Say Thank You to Google For This Useful Post:
Adam (01-19-2010), Neoxter (01-01-2010), SysTaMatIcS (01-01-2010)
Old 01-01-2010   #2
Neoxter
Beyond the Code
 
Neoxter's Avatar
 
Last Online: 06-15-2014
Join Date: Sep 2008
Posts: 2,993
Thanks: 2,214
Thanked 3,426 Times in 1,499 Posts
Groans: 57
Groaned at 69 Times in 52 Posts
Default

nice!

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

__________________
Whatever you do, do it for the Lulz.
Neoxter is offline   Reply With Quote
The Following User Says Thank You to Neoxter For This Useful Post:
Tawa (01-02-2010)
Old 01-18-2010   #3
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default

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

Google is offline   Reply With Quote
Old 01-18-2010   #4
SysTaMatIcS
Registered Member
 
SysTaMatIcS's Avatar
 
Last Online: 04-17-2018
Join Date: Dec 2006
Posts: 10,466
Thanks: 14,135
Thanked 4,242 Times in 2,546 Posts
Groans: 186
Groaned at 198 Times in 120 Posts
Default

barki mfakreena a picture for pina collada w 7ateen l code
__________________
problems of performance appraisal is that it sucks to memorize them
SysTaMatIcS is offline   Reply With Quote
Old 01-18-2010   #5
Neoxter
Beyond the Code
 
Neoxter's Avatar
 
Last Online: 06-15-2014
Join Date: Sep 2008
Posts: 2,993
Thanks: 2,214
Thanked 3,426 Times in 1,499 Posts
Groans: 57
Groaned at 69 Times in 52 Posts
Default

one of those three:

1-this is a prank being played by you
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..
__________________
Whatever you do, do it for the Lulz.
Neoxter is offline   Reply With Quote
Old 01-18-2010   #6
Kingroudy
Super Moderator
 
Kingroudy's Avatar
 
Last Online: 02-20-2014
Join Date: May 2006
Posts: 5,580
Thanks: 1,888
Thanked 2,653 Times in 1,593 Posts
Groans: 55
Groaned at 35 Times in 32 Posts
Default

HAHAHAHAHAHAHAHA this crap is funny!!
__________________
click on 'Groan' to switch to my left testicle.
Kingroudy is offline   Reply With Quote
Old 01-18-2010   #7
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default

Quote:
Originally Posted by Neoxter View Post
one of those three:

1-this is a prank being played by you
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.
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.
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!


Quote:
Originally Posted by Google View Post
4- My girlfriend is trying to surprise me.
I don't have a girlfriend.
__________________

Google is offline   Reply With Quote
The Following User Says Thank You to Google For This Useful Post:
Neoxter (01-19-2010)
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
eve, night, program, wrote, year



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:28 AM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share