ما تقصر تيمون ..
بس نحن بعدنا وحده 12 ما ثبتنا عليها و ما خذنا لابات عليها ..
بس
الي عنده سؤال يطرحه
و الله يوفقكم..
ما تقصر تيمون ..
بس نحن بعدنا وحده 12 ما ثبتنا عليها و ما خذنا لابات عليها ..
بس
الي عنده سؤال يطرحه
و الله يوفقكم..
هلا باهل المنتدى ...شو اخباركم ..
وشو اخبار الدراسة وياكم ؟؟
إن شاء الله أوكي..
أقول اخواني بغيت اسالكم متى بتنزلون شرح chapter 12؟
أتمنى انكم تنزلونه لأنه الاساتذة شارحينه من زمان.. أنا مقدر انكم في فترة امتحانات و شغل.. بس شو نسوي الله يسهل علينا ...
اتريا الشرح و مشكورين ما تقصرون.
السلام عليكم...شخباركم يا جماعه ..
و الله اشتقت للمنتدى من فتره ما دخلت......
بس ويييييين الشرح؟؟؟
يالله أخوي تيمون حيلك..اشرح لينا...أوكيك...
بالانتظار...
السلام عليكم...
ويييييين الشرح؟؟؟ :(
احد يشد حيله ويشرح لنا شوي..
احد يرحمنا و يتبرع و يشرح لنا chapter 12 :(
???????????????????????????
W e ARE W A I T I N G
??????????????????????????
السلام عليكم...
طبعا حتى الآن أخي م نرى أي شرح
بس اقترح عليك فكرة نعمل فريق..
ونكون كتاب عن هذه اللغة بكتاب الكتروني
ليس بصيغة الاكروبات وإنما ملف تنفيذي
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
وهناك برنامج اعرفه اسمه صانع الكتب الالكترونية
كان عندي هذا البرنامج من قبل بس جهازي لعب
فيه فيروس محه جميع الملفات في الجهاز واظهرها
على شكل شرائح....
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
وصانع الكتب هذا تلقاه في موقعه اللي صمم البرنامج
تفضل بالدخول:::الفريق العربي للبرمجة
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
وهناك أيضا برنامج اسمع به واسمه....
eBook WorkShop
يقولون إنه أحسن برنامج لهذا الغرض...
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
وشكــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــرا....
حبيت أمر عليكم ،، و أقول لكم ،،
الله يعطيكم العافية ،، و كلها بموازين حسناتكم بإذن الله ،،
أختكم ،،
السلام عليكم ورحمة الله وبركاته
شوأخباركم؟؟
حرام عليكم ارحمونا بشرح جبتر 12
انا اتعقدت من الأريه
احس الواحد يحتاج يركز بكامل قواه عشان يحل....
يلا عااااااااااااااااااااااااد نجوف شرحكم؟؟
السلام عليكم
ممكن حد يساعدني في هالسوال؟
The file "directory.dat" contains name and telephone number of your friends. Write a C++ program to read the telephone directory and store it in suitable arrays and then perform the following menu options:
1. Display the telephone directory
2. Find a specific name
3. Find a specific phone number
4. Edit a specific name
5. Edit a specific phone number
6. Sort
7. Exit
Notes:
- Use switch statement
- In option 1, your program should display the contents of the array
- In options 2 and 4, you should ask the user to enter a name and then perform a search in the arrays to find if that name exists and then display/edit the corresponding phone number. (Your program should display a meaningful message in case the name you search for doesn't exist).
- In options 3 and 5, you should ask the user to enter a phone number and then perform a search in the arrays to find if that number exists and then display/edit the corresponding name. (Your program should display a meaningful message in case the phone number you search for doesn't exist).
- In option 6, you should sort the phone directory in alphabetical descending order
- In option 7, you should ask the user if he/she wants to store the contents of the arrays in the file. In case of YES, you store the arrays in the file and terminate the program. In case of NO, you terminate the program without saving.
السلام عليكم...بشرح لكم اللي بقدر عليه.....
شو هو الArray....اتوقعوا؟؟؟؟؟
هو نوع من أنواع ال Data type.....يعني مثل الstring و الint ...الخ.....
نستخدم ال array علشان...نصغر الكود وعلشان بعد يسهل علينا كتابة البرنامج..فإذا كان عندنا وااااااااايد معلومات ونبى نقرأ وااااايد أشياء فنستخدم الarray...و الarray يكون دايما Pass by reference.....يعني يطرش العنوان...ما يطرش القيمة....
و الarray ..يكون بس من نوع الint و نوع الcharacter...يعني ما شي array من نوع string ....
بعطيكم مثال...على شكل الarray...إذا كنت بعرف array من نوعcharacter....يحتوي على عشرةelements....فبيكون شكله جيه في الdeclaration...للarray....
char name[10]; // declaration allocates memory
شفتوا هالمثال....سهل...يعني بس نعرف نوع array....و كم عدد الelements.اللي بنستخدمها...
بعطيكم مثال ثاني...
شوفوا...
float temps[ 5 ] ; // allocates memory for array
int m = 4 ;
temps[ 2 ] = 98.6 ;
temps[ 3 ] = 101.2 ;
temps[ 0 ] = 99.4 ;
temps[ m ] = temps[ 3 ] / 2.0 ;
temps[ 1 ] = temps[ 3 ] - 1.2 ; // what value is assigned?
7000 7004 7008 7012 7016
99.4 ? 98.6 101.2 50.6
temps[0] temps[1] temps[2] temps[3] temps[4]
انشوف انه الarray من نوع float يعني..الfloat ياخذ 4 bytes.....فأول adress بيكون7000..و اللي بعديه 7004..و اللي عقبه 7006...و هكذا...
شوفو آخر معادله....تتوقعوا كم بيكون الناتج....؟؟؟؟؟
سهل بيكون الناتج 100.0.....لأنه temps[3]...قيمته 101.2 - 1.2....بيكون قيمته 100.0....
مثال ثاني....
Declare an integer array of 5 elements and do
following operations:
Get input from user.
Add 10 to each element of array.
Display array.
Square each element of array and then redisplay.
في الجزء الأول طابين منكم تاخذو المخلات من المسخدم يعني بتسوون cin...
في الجزء الثاني..طالبين منكم....تضيفوا 10 لل arrray...
في الجزء الثالث طالبين منكم تسوون display للarray.....يعني تسوون cout.ز.
والجزء الرابع تسوون تربيع للarray.....
وهذا الحل...
#include<iostream>
using namespace std;
int i;
int main()
{
int x[5];
for(i=0;i<5;i++)
{
cin>>x;
}
for(i=0;i<5;i++)
{
x+=10;
}
for(i=0;i<5;i++)
{
cout<<x<<"\t"<<endl;
}
for(i=0;i<5;i++)
{
cout<<x*x<<"\t";
}
return 0;
}
مثال ثالث بسيط شوفو هالكود..
#include<iostream>
using namespace std;
int main()
{
int ages[]={40,13,20,19,36,100};
for(int m=0;m<5;m++)
{
cout<<ages[m]<<endl;
}
return 0;
}
توقعوا شو بيكون الناتج؟؟؟
طبعا بيطلع الناتج
40
13
20
19
36
وبس...لأننا هني حددنا الm ..بيكون أقل من خمسه..يعني بيبدأ العد من أول رقم لخمس أرقام و هو بدأ ..بأول رقم اللي هو 40 وكمل لخمس أرقام ووقف عند رقم 36.....
لأنه عد خمس أرقتم ووقف....
أنا إن شاء الله بحاول أكمل الشرح..و اسمحولي.....
1. Write a program that plays the game of hangman. Read the word to be guessed into the string WORD. The player must guess the letters belonging to WORD. The program should terminate when either all letters have been guessed correctly (player wins) or a specified number of incorrect guesses have been made (computer wins).
Hint: use the string SOLUTION to keep track of the solution so far. Initialize SOLUTION to the string of symbols ‘*’. Each time a letter in WORD is guessed, replace the corresponding ‘*’ in SOLUTION with that letter.
تكفون ابي حل هالسؤاااال وربي ماعرفت له
تيمووون حله لي وانا اختك ..
شروق
السلام عليكم اخوي طالب برمجة
شوف اخوي انا كتبت لك الكود اللي تبغيه بس بكل صراحة انا ما كملته لاني مشغول شوي و كتبته ليك يعني بسرعه بس بغتيتك تعرف فكرته و تحاول اتكمله بروحك وانا ان شاء الله بساعدك اذا احتجت لاي مساعده ...
و اقول اتراك تقدر اتحسن من طريقة كاتبتي للكود لانه مثل ما قلتلك كنت مستعيل يوم كتبته ..
و اذا عندك اي سؤال عن الكود اسأل و لا تتردد ..اقتباس#include<iostream>#include<string>
#include<fstream>
using namespace std ;
int main()
{
ifstream in;
in.open("directory.dat");
bool s= false;
string name[100], search;
int phone[100],i,searchN,number;
cout <<"1. Display the telephone directory\n"
<< "2. Find a specific name\n"
<<"3. Find a specific phone number\n"
<<"4. Edit a specific name\n"
<<"5. Edit a specific phone number\n"
<<"6. Sort\n" <<"7. Exit\n";
while( number!=7)
{
cout <<"Enter your option " ;
cin >> number ;
if (number == 1 )
{
for (i =0 ; i < 3; i++)
{
in >> name>>phone;
cout <<name <<"\t"<<phone<<"\n";
}
}
else if ( number == 2 || number == 4 )
{
cout <<"Enter the name : ";
cin >> search;
for (i= 0 ; i < 3; i++)
{
if ( search == name )
{
s = true ;
break;
}
}
if (s)
cout << name <<"\t" << phone<<"\n";
else
cout << "Sorry .. The name doesn't exist !\n";
if ( number == 4 && s == 1)
{
cout <<"Change the Phone number of ("<<name<<") to " ;
cin >> phone;
}
}
else if ( number == 3 || number == 5 )
{
cout <<"Enter the Phone number: ";
cin >> searchN;
for (i= 0 ; i < 3; i++)
{
if ( searchN == phone )
{
s = true ;
break;
}
}
if (s)
cout << name <<"\t" << phone<<"\n";
else
cout << "Sorry .. Phone number doesn't exisit!\n";
}
if ( number == 5 && s == 1)
{
cout <<"Change the name of person that he or she have a phone number ("<<phone<<") to " ;
cin >> name;
}
}
in.close ();
return 0 ;
}
و اختي شروق ليش ما تحاول تحلين المسأله بروحج و اذا صدفتج اي مشكله و ما عرفتي اتصيغين الكود ... اتراني في الخدمه لاني اذا عطيتج الكود كامل ما تستفيدين شي ..
و مشكوره اختي طالبه على الشرح .. ما تقصرين خففتي عني ..
و السموحه ..
اخوكم تيمون
مشكوووووووووووووووووووووووووووووووووووور
هذا الموضوع مغلق.