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

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

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

ITCS112 - ITCS104 - ITCS102 للفصل الصيفي 2014 - 2015

عيدكم مبارك مؤخرا :msn-wink:

كملت جبترين باقي اخر جبتر:smile:
 
السلام
ساعدني شخص في حل الاسايمنت اللي خليته بس كلما جربنه انشغله يطلع الحل امخربط واهو ما في ايرور فما عرفت من شنو فاللي يشوف الحل ويعرف وين المشكله بلييز يخبرني او شكرا..

#include<string>
#include<iostream>
using namespace std;
class studentType
{
string fname;
int studentid;
string lname;
int courses;//number of taken courses
int length;
double marks[36];
public:
studentType(int ,string,string);
studentType();
void setinfo(int,string,string);
void insertNew_marks (double);
void print()const;
~studentType();
};
void new_student()//non member function to creat new student
{
studentType ob;
string n,n1;
int num;
double m;
cout<<"Enter your first name :";
cin >>n;
cout<<"Enter your last name:";
cin>>n1;
cout<<"Enter your id number:";
cin>>num;
ob.setinfo(num,n,n1);
for(int t=0;t<2;t++)
{
cin>>m;
ob.insertNew_marks(num);
}

}
void studentType::print()const//print function
{
cout<<"Name:"<<fname<<" "<<lname;
cout<<" id number="<<studentid;
cout<<" marks:";
for(int y=0;y<length;y++)
cout<<marks[y]<<" ";
//cout<<"number of courses taken by student="<<courses<<endl;
double sum=0,a;
for (int i=0;i<length;i++){
sum+=marks;}
a=(sum/length);
cout<<"average ="<<a;
}



void studentType::insertNew_marks(double number)//insert marks
{
if (length==36){
cout<<"Full list.";
return;}
marks[length]=number;
length++;
}


void studentType::setinfo(int id,string first,string last)//set information
{
studentid=id;
fname=first;
lname=last;

}
studentType::~studentType(){//cout<<"object has been deleted";
}//destructor

studentType::studentType(int id,string first,string last )//constructor with parameters

{
fname=first;
lname=last;

}








studentType::studentType(){

fname="";
lname=" ";
courses=0;
length=0;
studentid=0;
for(int i=0;i<36;i++)
marks=0.0;

}



int main(){

string name,namo;
studentType studentList[10];
int id;
double number;
for(int i=0;i<10;i++)
{
cout<<" YOU ARE STUDENT NUMBER ("<<i+1 <<") "<<endl;
cout<<"Enter your name :";
cin>>name;
cout<<"Enter your last name:";
cin>>namo;
cout<<"Enter your id:";
cin>>id;
studentList.setinfo(id,name,namo);

for(int y=0;y<2;y++)
{
cout<<endl;
cout<<"Enter your mark:";
cin>>number;
studentList.insertNew_marks(number);
cout<<endl;
}
}


for (int p=0;p<10;p++)
{

studentList[p].print();
cout<<endl;
}
return 0;
}

​
 
واللي عنده حل التيتوريال ويقدر يخليه يحطه عشان نتاكد من حلنه واحنا ندرس
وشكراا
 
اختي لازم تعدلين فالفنكشن نفسها تسوين اند لاين وسبيسات عشان يطلع مرتب ...

مثل البرنت

والفنكشنات اللي فيها cout عموما !
 
مين عنده الحل مال بربلم 4 Structs الى عن الاقمار
 
مين عنده الحل مال بربلم 4 Structs الى عن الاقمار

تفضل

كود:
 struct planet_type {
string name;
int nummoons;
string Moonnames[50];
long dists[50];


};

void Min_Dist(const planet_type x) {
int min=1;
for(i=0;i<nummoons;i++) {
if(x.dists[i]<x.dists[min]) min=i;

}
cout<<"the closest moon to the planet "<<x.name<<"is :"<<x.Moonnames[min]<<endl;

}


struct Solarsystem_type {
Planet_type planets [100];

};


Solarsystem_type systemx;

for( int i=0;i<100;i++){
cout<<systemx.planets[i].name<<endl;

}
 
الامتحان في اي قاعه
الساعه جم

؟
 
سلااام عليكم
سكشن 11
ام دبليو صبح ساعة 8
مع ميادة عن الهوم اسايمنت انا كلش كلش ما ينفتح عندي
ويطلع ايروور ويسكر الوندو ؟؟
ليش؟؟
 
اعذروني ما سويت النوتة لأن طلع عندي امتحان هالاسبوع و اني ما ادري بالدنيا و طلعت ليي اشغال بعد ... هذا تجميع للي كتبوه الطلبة من المحاضرات الي حضروها

و اذا في اي استفسار الكل موجود هني و بساعد ان شاء الله :smile:



[IMGL]http://store1.up-00.com/Oct10/ysD94437.jpg[/IMGL]

:shiny:

[IMGL]http://store1.up-00.com/Oct10/myB94437.jpg[/IMGL]

:shiny:

[IMGL]http://store1.up-00.com/Oct10/Iq594437.jpg[/IMGL]

:shiny:
[IMGL]http://files03.arb-up.com/i/00306/h9u9kld09zxw.jpg[/IMGL]

:shiny:

[IMGL]http://store1.up-00.com/Oct10/rcL95414.jpg[/IMGL]



:blush-anim-cl:

































































































































































































:shiny:
[IMGL]http://store1.up-00.com/Oct10/cS408854.jpg[/IMGL]
:shiny:
[IMGL] http://store1.up-00.com/Oct10/esf08320.jpg[/IMGL]

:shiny:
[IMGL]http://store1.up-00.com/Oct10/NcT09600.jpg[/IMGL]

[IMGL]http://store1.up-00.com/Oct10/q3i09600.jpg[/IMGL]

:eek:

[IMGL]http://store1.up-00.com/Oct10/FRf09601.jpg[/IMGL]



















































































































































































































































































































محاضره اليوم

[IMGL]https://www.uob-bh.com/upload/up_live/12881780261.jpg[/IMGL]

[IMGL]https://www.uob-bh.com/upload/up_live/12881780272.jpg[/IMGL]

[IMGL]https://www.uob-bh.com/upload/up_live/12881780273.jpg[/IMGL]

[IMGL]https://www.uob-bh.com/upload/up_live/12881780274.jpg[/IMGL]

[IMGL]https://www.uob-bh.com/upload/up_live/12881780275.jpg[/IMGL]

[IMGL]https://www.uob-bh.com/upload/up_live/12881782021.jpg[/IMGL]



































































































































































































































































































































































































[IMGL]https://www.uob-bh.com/upload/up_live/12886942471.jpg[/IMGL]

:shiny: دي لو الثانيه اللي فيها الoutput?
:mellow:






















































































































هذي ورقة السؤال ...

http://img840.imageshack.us/img840/1947/picture001fe.jpg

وهذا الحل ...

http://img253.imageshack.us/img253/3264/picture002rt.jpg
http://img703.imageshack.us/img703/79/picture003a.jpg

بس فيه خطئين عندي لان كتبتهم بسرعة ... :nosweat:

أول ورقة ... تعريف الستركجر ... آخر شي نسيت أحط ( ; ):nosweat:
وثاني ورقة ... تعريف الستركجر ... آخر شي نسيت القوس والفاصلة ( ;{ ) :RpS_scared:
وآخر الورقة ... نسيت اصك القوس مال الفنكشن :RpS_wink:


مسامحة ... :RpS_tongue:

دعواتكم ... :blushing:
 
انزين محد يقدر اقول لي اش سالفةdata abstraction على الاقل
مب فاهم اش سالفتها انا
 
سلااام عليكم
سكشن 11
ام دبليو صبح ساعة 8
مع ميادة عن الهوم اسايمنت انا كلش كلش ما ينفتح عندي
ويطلع ايروور ويسكر الوندو ؟؟
ليش؟؟


قصدش الاسايمنت 5 !!
كان التسليم من 8/11 لـ 15/11
 
شباب
بخصوص الامتحانات السابقة في المكتبة

فيه امتحانات 2005-06 .. وامتحانات 2008-09

وكل امتحان منهم صيغته طريقة الاسئلة مختلفة 180 درجة عن الثاني..
واللي اجوفه معقول ومشابه للـ توتوريال هم امتحانات 08-09..

بما معناه اكبر احتمال انه يجينا بنفس صيغتهم ..
لكن هل ممكن تكون صيغة الامتحان مثل امتحانات 05-06؟
لان بصراحة انا ضعت فيهم كله output و اشيا مو ويانا فالمدترم مثل
البوينترز و السترينغ ..

فأتمنى تزويدنا بفكرة عن الامتحان..
 
الامتحان بكون ..

1- واحد آوت بت ( و في احتمال قليل ان ما يجي )

2- سؤال على جبتر 10 ... كتابة واحد من كودات السورت كوبي بيست او يجي سؤال فيه شوي تفكير

3- سؤال على الستركجر نفس التيتوريال بالضبط

4- سؤال على الكلاس ... تكتب الكلاس و تكتب جم فنكشن منهم
 
شكرا شكراا عبير
ما لج حل :shiny:
 
السلام
لو سمحتون عندي سؤال في الclass
في شنو نستخدم set function & get function?
 
ممكن مساعده في حل هالسؤال ؟

write a function named insertsum that take as parameters: an arry of integers, number of elements in array which is paeed by refernce, and a constant arry size. the function should insert the sum of two consecutive elements in the array if the value of the sum is less thatn the value of the elemnt after the consecutive elements when thers is a place in the array to insert new element.
 
السلام
لو سمحتون عندي سؤال في الclass
في شنو نستخدم set function & get function?

الست فنكشن عشان ادخلين المعلومات

و القت عشان اطلعين المعلومات فاذا ما عندش فنكشن للطباعة تسوين cout الى الأوبجكت دوت القت فنكشن
 
عودة
أعلى أسفل