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

برنامج الأربعين النووية

بدأه المبرمج عبدالكريم في 15 أغسطس 2006 · 14 رد · 2,772 مشاهدة · في نظام تشغيل Unix & Linux
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

بسم الله الرحمن الرحيم

السلام عليكم ورحمة الله وبركاته

اقدم لكم اخواني الاعزاء ,,

اول برنامج ابرمجه في اللينوكس

اسم البرنامج : الأربعين النووية

الإصدار الأول منه

برنامج مجاني حر مفتوح المصدر

تم برمجته بلغة c++ بواسطة Qt3

المبرمج : المبرمج عبدالكريم ملكدي

انقر هنا لتحميل البرنامج

http://al-dheya.net/download/linux/40Nwa/40Nwa.tar.gz

انقر هنا لتحميل السورس كود

http://al-dheya.net/download/linux/40Nwa/4...urcecode.tar.gz

لا تنسوا الدعاء لي

#2

جزاك الله خيرا

وفعلا فى نقص فى البرامج الاسلاميه مثل الموسوعات

لكن الاخوه بارك اله فيهم بداو عمل برامج

وبارك الله فيكم

022.gif

***********************************************

043.gif

#3
اقتباس
void frmnwa::viewhadith(int idx)
{
	QString lines;
	QString msg="<font color=red>can't found hadith file</font>";
	QString line;
	if (idx==0)
	{
	QFile file("./hadith/h0");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();	
	 }
	else if (idx==1) //{{{
	{
	QFile file("./hadith/h1");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==2) //{{{
	{
	QFile file("./hadith/h2");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==3) //{{{
	{
	QFile file("./hadith/h3");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==4) //{{{
	{
	QFile file("./hadith/h4");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==5) //{{{
	{
	QFile file("./hadith/h5");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	}
	else if (idx==6) //{{{
	{
	QFile file("./hadith/h6");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==7) //{{{
	{
	QFile file("./hadith/h7");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==8) //{{{
	{
	QFile file("./hadith/h8");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==9) //{{{
	{
	QFile file("./hadith/h9");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==10) //{{{
	{
	QFile file("./hadith/h10");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==11) //{{{
	{
	QFile file("./hadith/h11");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==12) //{{{
	{
	QFile file("./hadith/h12");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==13) //{{{
	{
	QFile file("./hadith/h13");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==14) //{{{
	{
	QFile file("./hadith/h14");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==15) //{{{
	{
	QFile file("./hadith/h15");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==16) //{{{
	{
	QFile file("./hadith/h16");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==17) //{{{
	{
	QFile file("./hadith/h17");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==18) //{{{
	{
	QFile file("./hadith/h18");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==19) //{{{
	{
	QFile file("./hadith/h19");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==20) //{{{
	{
	QFile file("./hadith/h20");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==21) //{{{
	{
	QFile file("./hadith/h21");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==22) //{{{
	{
	QFile file("./hadith/h22");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==23) //{{{
	{
	QFile file("./hadith/h23");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==24) //{{{
	{
	QFile file("./hadith/h24");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==25) //{{{
	{
	QFile file("./hadith/h25");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==26) //{{{
	{
	QFile file("./hadith/h26");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==27) //{{{
	{
	QFile file("./hadith/h27");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==28) //{{{
	{
	QFile file("./hadith/h28");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==29) //{{{
	{
	QFile file("./hadith/h29");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==30) //{{{
	{
	QFile file("./hadith/h30");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==31) //{{{
	{
	QFile file("./hadith/h31");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==32) //{{{
	{
	QFile file("./hadith/h32");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==33) //{{{
	{
	QFile file("./hadith/h33");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==34) //{{{
	{
	QFile file("./hadith/h34");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==35) //{{{
	{
	QFile file("./hadith/h35");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==36) //{{{
	{
	QFile file("./hadith/h36");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==37) //{{{
	{
	QFile file("./hadith/h37");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==38) //{{{
	{
	QFile file("./hadith/h38");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==39) //{{{
	{
	QFile file("./hadith/h39");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==40) //{{{
	{
	QFile file("./hadith/h40");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==41) //{{{
	{
	QFile file("./hadith/h41");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==42) //{{{
	{
	QFile file("./hadith/h42");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==43) //{{{
	{
	QFile file("./hadith/h43");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==44) //{{{
	{
	QFile file("./hadith/h44");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==45) //{{{
	{
	QFile file("./hadith/h45");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==46) //{{{
	{
	QFile file("./hadith/h46");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==47) //{{{
	{
	QFile file("./hadith/h47");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==48) //{{{
	{
	QFile file("./hadith/h48");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
	 }
	else if (idx==49) //{{{
	{
	QFile file("./hadith/h49");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();				 
}
}

أخى كمية الكود كبيرة جدا

اقتباس
void frmnwa::viewhadith(int idx)
{
	QString lines;
	QString msg="<font color=red>can't found hadith file</font>";
	QString line;
	if (idx==0)
	{
	char *TempFN=new char[1024];
	char *TempNu=new char[3];
	TempNu = _ecvt(idx,2,0,2);
	TempFN="./hadith/h";

	strcat(TempFN,TempNu);
	QFile file("./hadith/h0");
	if ( file.open( IO_ReadOnly ) )	 {
		QTextStream stream( &file );
		while ( !stream.atEnd() ) {
			line = stream.readLine();
			lines += line;
	}  
	}
	else
	{
	tbHadith->setText(msg);
	}
	tbHadith->setText(lines);
	file.close();	
	delete TempFN;
	delete TempNu;
	}
}

** الكود الى أنا كتبه على أثاث معرفتي بالتعامل مع VC++

بهذا الشكل سوف تخدم هذه الدالة كل الدوال

ربنا يجزيك خير على هذا العمل

Nothing to mention except that I am Muslim

Using your brain is not bad as you think

My Blog

logo.jpg

#4

BESHEER

شكرا على المرور

neo

انا استخدمت طريقة اقل اكواد من طريقتك ولكن لم تنجح

وايضا استخدمت طريقة switch ولم تنفع

كلها اخطاء دقيقة ولم اعثر عليها

وتعبت منها واستخدمت هذه الطريقة التي تبدوا جدا غبية

ولكن لم اجد الا هذه الطريقة لابدا في عمل برنامج اخر بسرعة

تحياتي لكم

#5

تشكر أخي ولو تضع صورة للبرنامج سيكون اكثر من روعة

تحياتي

#6

ارفق بعض الصور للبرنامج ،

البرنامج جميل جدا ،،، تمت تجربته على توزيعة ارابيان بنجاح ،،،

post-32886-1155729169_thumb.jpg

post-32886-1155729240_thumb.jpg

#8

ربنا يباركلك يا رب و يلحقني بركب ال c++

#9

بارك الله فيك وجزاك الله خيرا

فعلا نحتاج الى عمل مكتبات وبرامج اسلاميه على اللينكس

2129cdd84c.gif

danger.gif
#11

السلام عليكم

البرنامج جميل فعلا، جزاك الله خيرا

MPSI/MP* - CPR Tanger

#12
اقتباس
البرنامج جميل فعلا، جزاك الله خيرا

وعليكم السلام .. حياك الله اخي..

#13

ولله عمل جميل اخي عبدالكريم . وفقك الله والى الامام ..

لا إله الإ الله وحده لا شريك له الملك وله الحمد يحي ويميت وهو على كل شئ قدير

------------------------------------------------------------------------------------------------

gazabigBanner.jpg

------------------------------------------------------------------------------------------------

#15

جميل جدا بارك الله فيك. وزادك علما.

tvquran_6.gif

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