الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

تصريحات ظريفة بلغتي سي/سي++

بدأه MohammadKaraki في 18 يونيو 2009 · 1 رد · 466 مشاهدة · في لغة C و ++C
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

أولا:

men()
{
	 goto pub;
	 pub:
	 return pissed;
}

women()
{
	 goto bathroom;
	 bathroom:
	 while (1);	 /* !!!! */
}

جماعة مايكروسوفت رجاءا تخطوا عن هذا الكود ولا تقرأوه :mellow:

/* All this was done on August 17, 2007 by Pietro Gagliardi
   You are free to use this code in a citation or (if you have the guts)
   in your own program; just please mention me. */

typedef int number;
class microsoft : public corporation, public enemy<(number) 1> {
public:
	microsoft()
	{
		sanity = 200;
		bill_gates = drop_out();
		ceo = bill_gates;
		while (sanity > 2) {
			sleep(2);
			sanity--;
		}
		steve_ballmer = new class doofus;
	}

#define our int
#define SUCCESS 1

	our year_2006_goals()
	{
		delete bill_gates;
		ceo = steve_ballmer;
		sanity -= 200;
		return SUCCESS;
	}
protected:
	int sanity;
	class doofus ceo, bill_gates, steve_ballmer;
};

typedef int iq;
const iq of_steve_ballmer = -4, of_steve_jobs = MENSA_MINIMUM - 1,
		 of_linus_torvalds = MENSA_MINIMUM, of_bill_gates = UNDEFINED;

هم جماعة لينكس بجد حاقدين على ميكو؟؟ :huh: (لأنو المصدر gnu.org طبعا)

/* Here are some that make use of the preprocessor and the Unix programming interface */
#include <sys/types.h>

#define middle
middle class businessMan {
	ino_t want_to_go_to_work;
#if speeding_to_work_because_you_are_late
	off_t o_jail;
#endif
};

class mate
{
	ino_t wannagotoskool;
};

class woman {
#define be
private:
	be friend class of_girls;
	off_t o_the_mall()
	{
		for (;;)
			mall.go_to(rand()).shop();
	}
};

class clown {
!friend class teacher;
friend class mate;
};

;

على فكرة

انا حاسس انو

!friend class teacher

هو من المقاييس الجديدة للسي++ لإنهاء الصداقة مع الصنف.....(فكرة!! :blink: )

/*if GCC extensions are allowed -- Dave Gilbert */
long long ago; /* in a galaxy far far away */

طبعا من هون ونازل انا مو فاهم شي :huh:

auto accident;
register voters;
static electricity;
struct by_lightning;
void *where_prohibited;
char broiled;
short circuit;
short changed;
long johns;
long dong_silver;	/* Submitted by Juan Carlos Castro */
unsigned long letter;
double entendre;
double trouble;
union organizer;
union jack;
float valve;
short pants;
union station;
void check; unsigned check;
struct dumb by[sizeof member];
union onion;	/*submitted by srp*/

واخيرا: http://www.gnu.org/fun/jokes/declarations.html

تم تعديل هذه المشاركة بواسطة MoHammaD_93 في 18 يونيو 2009 في 03:25

SAFETY TIP : Always delete what you new, and free what you malloc, never mix new with free or malloc with delete.

#2

:lol: :lol: :lol:

مدونتي: C++ Tips and Tricks

مواضيع مشابهة