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

عضو جديد يطلب المساعدة من أخوانة

مغلق
بدأه youyou في 17 مايو 2005 · 0 رد · 213 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1

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

أولا أبارك لكم هذا المنتدى القيم بمواضيعه

ثانياّ:طلب من عندنا برنامج يكون وظييفة قاعدة بيانات مكتبية بلغة ++C وقمت بكتابة محاولتي لكن ارجو منكن المساعدة في تصحيح الكود والزيادة عليه وشكراّ أرجو الرد بسرعة لأن ما بقى على موعد التسلية شيئ:

أرجو إرسالة عن طريق البريد الإلكتروني:

#include<stdio.h>

#include<conio.h>

#include<string.h>

#include<stdlib.h>

main()

{

long int i,num,isbn,edition,date,num_2,nnum,L;

char title[80],author[80],target[80],target_1[80];

printf("1- Enter book information\n2- search a book\n3- exit");

printf("\nplease enter the number you want");

scanf("%ld",&num);

clrscr();

switch(num)

while(num!=3)

{

case 1:

printf("\n1- Enter the book's title\n\n2- Enter the book's author\n\n3- Enter the book's ISBN\n\n4- Enter the book's Edition\n\n5- Enter the book,s date of publishing\n");

scanf("%s %s %ld %ld %ld",title,author,&isbn,&edition,&date);

clrscr();

case 2:

printf("\n11- Search by the title\n\n22- Search by author name\n\n33- Sersh by the date of publishing\n");

printf("please input the number");

scanf("%ld",&num_2);

switch(num_2)

{

case 11:

printf("please input the target you are looking for");

scanf("%s",target);

L=strcmp(target,title);

if(L==0)

printf("the target is found");

else

printf("the target is not found");

break;

case 22:

printf("please input the target you are looking for");

scanf("%s",target_1);

L=strcmp(target_1,author);

if(L==0)

printf("the target is found");

else

printf("the target is not found");

break;

case 33:

printf("please input the targett you are lookinf for");

scanf("%ld",&nnum);

if(nnum==date)

printf("the target is found");

else

printf("the target is not found");

break;

}

case 3:

printf("\n\n\t\t\t*#*THANK YOU FOR USING MY DATA BASE*#*");

exit(1);

i++;

}

}

هذا الموضوع مغلق.

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

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…