صفحة 8 من 10 الأولىالأولى ... 345678910 الأخيرةالأخيرة
النتائج 106 إلى 120 من 148

الموضوع: من يريد مساعدة في ال c++

  1. #106
    التسجيل
    15-02-2007
    المشاركات
    298

    رد: من يريد مساعدة في ال c++

    أعتذر فالحاسب معطل وأدخل من منتديات الانترنت
    العملي دون النظري عمل أعمى والنظري دون العملي عمل ليس له فائدة

  2. #107
    التسجيل
    10-04-2004
    الدولة
    neather realm
    المشاركات
    198

    رد: من يريد مساعدة في ال c++

    السلام عليكم ورحمة الله وبركاته
    اشكرك اخوي على جهدك في هذا الموضوع
    ويعطيك الله الف عافية
    انا احتاج مساعدة منك اخوي في برنامج ما قدرت احل جزئية منه
    البرنامج المطلوب :
    you are asked to make a bubble sort program to sort an array of random integers (the random number has range from 1->100000) , you will test the sorting program for different array size(10,100,1000,10000,100000,1m,10m) and you will calculate the consumed time in sorting the array in each case , then you will make a chart between the number of elements in array and the consumed time in sorting
    also you will do this task for insertion sort and compare between the two algorithms

    اما الحل اللي قدرت اوصله لحد الان موجود في الرابط والشي الوحيد الي ماني عارف اشغله هو التوقيت وحساب الفرق ومشكلة عمل مصفوفة اراي راندوم(عشوائي) من اكثر من مليون
    فاتمنى تساعدني واكون لك من الشاكرين وادعيلك انشالله


    الملفات المرفقة الملفات المرفقة
    • نوع الملف: txt all.txt‏ (2.0 كيلوبايت, المشاهدات 1)
    hey there ..
    do u mind visiting my art gallery at:
    http://agent-47.deviantart.com/
    you can find my Arts in Gallery link
    thanks for your time

    *^_^*

  3. #108
    التسجيل
    31-05-2007
    المشاركات
    8

    رد: من يريد مساعدة في ال c++

    شكرا على الخدمه..... عهندي مشكله في قراءة الرسائل المرسله بالايميل باللغه العربيه .... اريد برنامج يحل المشكله... و مشكوووووووووووووووووووووور

  4. #109
    التسجيل
    20-10-2006
    الدولة
    Saber`s Heart
    المشاركات
    10

    رد: من يريد مساعدة في ال c++

    اقتباس المشاركة الأصلية كتبت بواسطة GOGENDANTESS مشاهدة المشاركة
    اخوي هالبرنامج من اسهل البرامج اللي تقدر تسويها :


    كود:
    #include <conio.h>
    #include <iostream>
     
    using namespace std;
     
     
    int main()
    {
        float height;
        float width;
        float result;
     
        cout << "Please enter the height: ";
        cin >> height;
     
        cout << endl;
     
        cout << "Please enter the width: ";
        cin >> width;
     
          result = height * width;
        cout << "The area is: " << result;
     
        getch();
        return 0;
    }
    مشكور اخوي,, بس ممكن اعرف كيف احول الكود إلى برنامج
    فكرة المستطيلات جميلة

  5. #110
    التسجيل
    15-02-2007
    المشاركات
    298

    رد: من يريد مساعدة في ال c++

    أعتذر من الأخ Agent 47 ليس لدي وقت لأصلح الحاسب ولكن عدي فكرة وهي خذ الوقت في بداية الحلقة ثم في نهايتها واطرح الوقتين
    العملي دون النظري عمل أعمى والنظري دون العملي عمل ليس له فائدة

  6. #111
    التسجيل
    15-09-2007
    المشاركات
    3

    رد: من يريد مساعدة في ال c++

    السلام عليكم
    ممكن يا اخويه علي اتساعدني في حل البرنامج انا برسل لك السؤال و حلي للبرنامج في أخطاء كثيره و خاصه في موضوع ال protected ماعرف كيف اسويلهم define
    اتمنى اتساعدني لانه احتاجه يوم الأحد و سألت كثير ناس محد راضي يساعدني ف أنت الحين اخر ملجأ لي

    الواجب في الملف المرفق

    انا فكرت لو اطرشلك البرنامج اللي سويته عالايميل احسن عشان تقدر تفتحه دايركت من البرنامج لاني اهني احسه يطلع املخبط و البرنامج طويل اذا حبيت تقدر اطرشلي ايميلك عالخاص و بطرشلك الكود

    المهم اذا هو حلي هو عبار عن project فيه أخطاء كثيره اغلبها في ال defining

    #include<string>
    #ifndef H_Gymnasium
    #define H_Gymnasium
    using namespace std;
    struct activities
    {
    string exercises;
    int time;
    };
    class Gymnasium
    {
    protected:
    activities gymArray[5];
    int gymlength;
    public:
    void set(string,int,int);
    void getActivities(string&,int&,int&)const;
    void calories();
    void print();
    Gymnasium(string, int , int);
    };
    #endif
    ::::::::::::::::::::::::::::::::::::::::::::::::
    #include<string>
    #ifndef H_Nutrition
    #define H_Nutrition
    using namespace std;
    struct meals
    {
    string food;
    int portion;
    };
    class Nutrition
    {
    protected:
    meals nutritionArray[5];
    int nutritionLength;
    public:
    void set(string , int,int);
    void getMeals(string& , int&,int&);
    void print();
    Nutrition();
    void calories();
    };
    #endif
    ::::::::::::::::::::::::::::::::::::::::::::::::::
    #include <string>
    #include"Regime.h"
    #include"Gymnasium.h"
    #include"Nutrition.h"
    #ifndef H_Patient
    #define H_Patient
    using namespace std;
    struct person
    {
    string name;
    double energy;
    };
    class Patientublic Gymnasium , public Nutrition
    {
    public:
    void set(string,int,int,string,int,int,string,double);
    void get(string&,int&, int& ,string& ,int&,int&,string&,double&)const;
    void print();
    Patient(string= "",int=0,int=0,string="",int=0,int=0,string=0,double=0);
    void calories(); // find the difference between gained & lost calories and
    //and sub. it from the energy
    private:
    person info;
    Regime regimePlan;
    };
    #endif
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    #include<string>
    #include"Gymnasium.h"
    #include"Nutrition.h"
    #ifndef H_Regime
    #define H_Regime
    using namespace std;
    class Regime
    {
    public:
    void set(string,int,int,string,int,int);
    void print();
    Regime(string ,int,int,string,int,int);
    void calories();
    private:
    Gymnasium exercisePlan ;
    Nutrition dietPlan;
    };
    #endif
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    #include <iostream>
    #include <string>
    #include "Gymnasium.h"
    using namespace std;
    const int OpenGym =680;
    const int Treadmill =820;
    const int Bike=620;
    const int Fitness=740;
    const int Hoop=210;
    const int gymlength=5;
    void Gymnasium::set(string ex , int T , int length1 )
    {
    exercises=ex;
    time=T;
    Gymnasium::gymlength=length1;
    }
    void Gymnasium::getActivities(string& ex , int& T ,int&length1 )const
    {
    ex=exercises;
    T=time;
    length1=gymlength;
    }
    void Gymnasium:rint()
    {
    cout<<"He\She lost "<<calories()<<"calories"<<endl;
    }
    Gymnasium::Gymnasium();
    {
    exercises=ex;
    time=T;
    Gymnasium::gymlength=length1;
    }
    double Gymnasium:: calories()
    {
    int totalLost,Lostcalories;

    for(int i=0 , i>gymlength , i++)
    gymarray[i]=exercises*time;
    totalLost+=gymarray[i];
    Lostcalories=totalLost/60;
    return Lostcalories;
    }
    :::::::::::::::::::::::::::::::::::::::::::::::
    #include<iostream>
    #include<string>
    #include"Nutrition.h"
    using namespace std;
    const int Carbohydrates=90;
    const int Protein=70;
    const int Vitamins=50;
    const int Water=10;
    const int Nutritionlength=5;
    void Nutrition::set(string f , int p , int length2)
    {
    food=f;
    portion=p;
    nutritionLength=length2;
    }
    void Nutrition ::getMeals(string&f , int&p ,int&length2)const
    {
    f=food;
    p=portion;
    length2=Nutritionlength;
    }
    Nutrition::Nutrition(string f , int p , int length2)
    {
    set(f,p,length2);
    }
    double Nutrition::calories()
    {
    int gainedcalories,totalgained;

    for(int i=0 , i>Nutritionlength , i++)
    Nutritionarray[i]=food*portion;
    totalgained+=Nutritionarray[i];
    gainedcalories=totalgained/100;
    return gainedcalories;
    }
    void print()
    {
    cout<<"He/She gained "<<calories()<<"calories"<<endl;
    }
    :::::::::::::::::::::::::::::::::::::::::::::
    #include<iostream>
    #include <string>
    #include"patient.h"
    #include"Regime.h"
    using namespace std;
    void set(string ex,int T,int length1,string f,int p,int length2,string n,double e)
    {
    Regime::set(ex,T,length1,f,p,length2);
    name=n;
    energy=e;

    }
    void get(string& exe,int& T, int& length1 ,string& f ,int& p,int& length2,string& n,double&e)const;
    {
    ex=exercises;
    T=time;
    length1=gymlength;
    f=food;
    p=portion;
    length2=Nutritionlength;
    n=name;
    e=energy;
    }
    void Patient:rint()const
    {
    cout<<"Before the regime"<<name<<"energy was "<<calories()<<"calories"<<endl;
    Regime:rint();
    Gymnasium:rint();
    Nutrition:rint();
    }
    Patient:atient(string= "",int=0,int=0,string="",int=0,int=0,string=0,double=0);
    {
    set(exe,T,length1,f,p,length2,n,e);
    }
    double patient::calories()
    {
    int before;
    before=Regime::calories()+600;
    return before;
    }
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    #include<iostream>
    #include<string>
    #include"Regime.h"
    using namespace std;
    void Regime::set(string,int,int,string,int,int)
    {
    Gymnasium::set(exe,t,length);
    Nutrition::set(f,p,l);
    }
    void Regime:rint()
    {
    cout<<"After the regime Ahmed energy is "<<calories()<<"calories"<<endl;
    }
    Regime::Regime(string ,int,int,string,int,int)
    {
    Gymnasium::set(exe,t,length);
    Nutrition::set(f,p,l);
    }
    double Regime::calories()
    {
    After=Gymnasium::calories()-Nutrition::calories();
    return After;
    }
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    و هذا ال driver

    #include<iostream>
    #include <string>
    #include<fstream>
    #include "Gymnasium.h"
    #include "Nutrition.h"
    #include "patient.h"
    #include "Regime.h"
    using namespace std;

    int main()
    {
    Patient A;
    int T,p;
    string f , ex , n;
    double e;

    cin>>n>>e;
    cout<<endl;
    ifstream inFile;
    inFile.open("patientActivities.txt");
    inFile>>ex>>T;
    inFile.close();

    inFile.open("patientMeals.txt");

    inFile>>f>>p;
    inFile.close();
    A.set(ex,T,length1,f,p,n,length2,e);
    A.print();
    return 0;
    }

    plzz don`t ignore it like others i really nead ur help
    الملفات المرفقة الملفات المرفقة

  7. #112
    التسجيل
    19-09-2007
    المشاركات
    20

    رد: من يريد مساعدة في ال c++

    باستخدام برنامج السي بلس بلس،،


    Developing secret codes has interested people for centuries. A simple coding scheme can be developed by replacing each character in a text file by another character that is a fixed number of positions away in the collating sequence. For example, if each character is replaced by the character that is two characters to its right in the alphabet, then the letter ‘a’ is replaced by the letter ‘c’, the letter ‘b’ is replaced by the letter ‘d’ and so on.



    Write a menu driven providing the following options:



    1) Code a file


    2) Decode file


    3) Display file


    4) Exit



    Each menu item would correspond to one of the following tasks:



    (1) Reads the text in a file and then generates a new file that contains the coded text using the above scheme (Change only the alphanumeric characters).



    (2) Decodes the file using the same scheme presented in step (1) (Test the program by using the files generate by step (1) above).



    (3) Allows the user to display the content of a specific file on the screen. Name of to display file should be provided by user.



    (4) Exit the program.



    Name your files as follows:


    1) Original.txt: Input text file to be decoded.


    2) Coded.txt: Coded file


    3) Decoded.txt: Decoded file


    Note that when you code and decode a file the resulting decoded file should match the original file

  8. #113
    التسجيل
    30-10-2006
    المشاركات
    4

    رد: من يريد مساعدة في ال c++

    الأخ الكريم علي الجنيدي

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

    بحيث يطلب من المستخدم أن يدخل اي جملة تحتوي على كلمتي END+BEGIN

    ثم يخرج الجملة التي بينهما

    هل من الممكن مساعدتي في إيجاد كود صالح ؟!!

  9. #114
    التسجيل
    05-08-2004
    المشاركات
    4

    رد: من يريد مساعدة في ال c++

    اخي العزيز ارجو مساعدتي في حل السؤالين !

    ولك جزيل الشكرا مع الاخلاص

    1( Write a C++ program which will produce the perfect numbers between 1 and 1000.
    A perfect number is defined to be equal to the sum of its perfect divisors. For example, 28 is a perfect number, since 28 = 1 + 2 + 4 + 7 + 14 where 1, 2, 4, 7, 14
    are the perfect divisors of 28

    2(

    Write a C++ program that simulates the rolling of two dice. The program should use rand() function to roll the first die, and should use rand() function again to roll the second die. The sum of the two values should then be calculated. Note: Since each die can show an integer value from 1 to 6, then the sum of the two values will vary from 2 to 12 with 7 being the most frequent sum and 2 and 12 being the least frequent sums. The table below shows the 36 possible combinations of the two dice. Your program should roll the two dice 36,000 times. Use counters to store the numbers of times each possible sum appears. Print the results in a tabular format. Also determine if the totals are reasonable, i.e., there are six ways to roll a 7, so approximately one sixth of all the rolls should be 7 ( Make sure to include <stdlib.h> and <time.h> libraries and use the switch statement. )


    في انتظار حلك اخوي ومشكوور !

    ملاحظة : الحل بدون استعمال المصفوفات ! وشكرا

  10. #115
    التسجيل
    15-02-2007
    المشاركات
    298

    رد: من يريد مساعدة في ال c++

    انشاء الله بلحق لبي الجميع
    العملي دون النظري عمل أعمى والنظري دون العملي عمل ليس له فائدة

  11. #116
    التسجيل
    04-11-2007
    المشاركات
    26

    رد: من يريد مساعدة في ال c++

    أتمنى اخوي تحل سؤال جزيرة الواك واك

    بسرعة خلال هذا اليوم..واضع نفس سؤالي

    وربي بسرعة

  12. #117
    التسجيل
    11-11-2007
    المشاركات
    8

    رد: من يريد مساعدة في ال c++

    لو سمحت ممكن تحل لي السؤالين هذي :

    Exercise # 1
    The following class deal with Student information.

    // Student information class
    ..
    ..
    enum status{regular, dropped, excused, unspecified};
    class student_recored{
    string name;
    long ID;
    float GPA;
    status student_status;
    public:
    student_record(string n, long id)
    {
    new_student(n,id);
    }
    void new_student(string, long);
    float retrieve_GPA(long);
    status get_status(long);
    status set_status(long);
    void print_students( );
    ……
    };
    int main()
    {
    ……
    student_record studen1("Lima Fahad", 42410), student2, student3;
    student.new_student("Mona Saad", 42401);
    …….
    return 0;
    }



    - You should add 10 new student and maintain their information which name, id, status.
    - You also should define a function that called SearchId which search for a target ID in all your students list.
    - This program should contain a menu for choose which one of these two function like this menu

    *******************
    ….Welcome To Student Program…
    Choose one of the following :-
    1- Add students.
    2- Print the GPA for all students.
    3- Print all Students Information.
    4- Exit …
    ********************




    Exercise # 2
    Problem about Random Number Generation.
    Write a program that deal with two function

    - First function TenRandNum use for print ten real random number. Note: use rand() function.

    - Second function GuessNum that contain two variables one as iGuess that refer to the number that get form the user, and iSecret that refer to the random number. This function should compare between these two variables and display if that the iGuess identical to iSecret or higher or lower, as the following output.


    Guess the number (1 to 10): 5The secret number is higherGuess the number (1 to 10): 8The secret number is lowerGuess the number (1 to 10): 7Congratulations!

    - This program should contain a menu for choose which one of these two function like this menu

    *******************
    Choose one of the following :-
    1- print ten ramdom number.
    2- Guess the number
    3- Exit.
    ********************



    وراح اكوون شاكره لك ..

  13. #118
    التسجيل
    15-11-2007
    المشاركات
    6

    رد: من يريد مساعدة في ال c++

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

    ممكن برنامج يوجد جمع المتتاليه:
    1-(1/3!)+(1/5!)-(1/7!)+......+1-(1/10!)


    وياريت يستمر

  14. #119
    التسجيل
    15-11-2007
    المشاركات
    6

    رد: من يريد مساعدة في ال c++

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

    ممكن برنامج يوجد جمع المتتاليه:
    1-(1/3!)+(1/5!)-(1/7!)+......+1-(1/10!)


    وياريت يستمر

  15. #120
    التسجيل
    15-11-2007
    المشاركات
    6

    رد: من يريد مساعدة في ال c++

    هاي حل مجموع المتتاليه:
    #include<iostream.h>
    void main()
    {

    cout<<"*******1-1/3!+1/5!-1/7!+1/8!-1/9!+1-1/10!**********\n";

    int f1=1,f2=1,f3=1,f4=1,f5=1,f6=1;
    float sum=0;
    int i=1;
    while(i<3)
    {
    f1*=i;
    i++;
    }

    i=1;
    while(i<5)
    {
    f2*=i;
    i++;
    }

    i=1;
    while(i<7)
    {
    f3*=i;
    i++;
    }

    i=1;
    while(i<8)
    {
    f4*=i;
    i++;
    }

    i=1;
    while(i<9)
    {
    f5*=i;
    i++;
    }

    i=1;
    while(i<10)
    {
    f6*=i;
    i++;
    }

    sum=float(1-(1/f1)+(1/f2)-(1/f3)+(1/f4)-(1/f5)+1-(1/f6));
    cout<<"the sum = "<<sum;

    }
    مع التجارب زبط معي

صفحة 8 من 10 الأولىالأولى ... 345678910 الأخيرةالأخيرة

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •