موقع طلبة جامعة البحرين

يمكنك تصفح الموقع كزائر ولكن ندعوك لتسجيل عضوية خاصة بك لتحصل على كافة الصلاحيات مثل تنزيل ملفات المكتبة وقراءة تعليقات هيئة التدريس وغيرها. يمكنك الحصول على عضوية مجانية بالضغط على زر تسجيل. إذا قمت بالتسجيل مسبقا فيمكنك الضغط على زر دخول.

تسجيل دخول
  • قسم المكتبة الجامعية مغلق مؤقتا بعد الاستهداف التي تعرضت له بعض خدمات أمازون في البحرين، جاري استرجاع الملفات ونقلها إلى سيرفرات جديدة وسيتم بعدها اعادة افتتاح المكتبة

الدراسة الجماعية لـ ITCS323- ITCS322 للفصل الدراسي الثاني 2012-2013

أمواج

ll Super Moderator ll
طاقم الإدارة
تاريخ التسجيل
17 يناير 2010
المشاركات
14,630
المجموعة
أنثى
الدفعة الدراسية
2010
الكلية
كلية تقنية المعلومات
التخصص
Computer science
السلام عليكم و رحمة الله


تم فتح الموضوع لدراسة مقرر ITCS323-ITCS322 للفصل الدراسي الثاني 2012 - 2013


قسم المقرر في المكتبة الجامعية

https://www.uob-bh.com/forum/downloads.php?do=cat&id=242

بالتوفيق

:smile2:
 
التعديل الأخير:
واو من الحين مبطلين دراسه جماعيه :-p
 
وياااكم ان شاءالله
 
المحاولات الجماعيه لفهم اسايمنتاتcs322 للعام 2013 الكورس الثاني

السلام عليكم

اني صراحه مستصعبه الاسايمنتات و مو عارفه احلها جيفه بحثت في النت بس ما حس شي مفيد لذاك الحد . لو كل اسبوع هني نتباحث فيه و نحللله و نحاول انحله واجد احسن ...
 
التعديل الأخير:
اسايمنت (2)

الاول طبعا ما في اسهل منه :smile2:

Write a C++ program that produces a report on the contents of the current directory. It should save names
of all the directories in a separate text file named “dir.txt”, and
saves all the files’ names and size of each file in a different file named “files.txt”.

The program should then display the contents of both files(dir/files) with the number of files and directories. A sample run may look like the following:

The names of the files:
f.txt
a.c
a.out
Total Size of all the files: 34543 bytes

The names of the directories:
R
myDir
You have 3 files and 2 directories

Make sure that you create a few sub-directories and files in your current working directory.
You should NOT use cat command to display the above output.

Notes:
1. Don’t forget to remove both of the temporary files at the end of the program.
2. Hint: You can use “ls –l” command to differentiate between files and directories.
3. Submit only the source code as a file with extension (.cpp) to the Black Board. (It should be one file only)
4. This is an individual assignment, no group work is allowed.
5. Remember to make your code readable by adding proper indentations.


 
هل احد عرف فكرته و جيفه نحله يساعدنه ؟!:smile2:
 
انا حاولت اني اعمل string array واحط فيه السطور وباستخدام substr(0,1) اطلع اذا كان الفايل dir of file بس منفعش
 
اللي عنده نوتات لهالمادة يحطهم بليز :shiny:
 
انا سويته صراحه كله باستخدام الكوماندس و خليتهم في سي اوت :RpS_glare: و صار تقريبا ثلاثه ارباعه
 
عودة
أعلى أسفل