نور القران
Well-Known Member
- تاريخ التسجيل
- 16 ديسمبر 2009
- المشاركات
- 1,461
- المجموعة
- أنثى
- الدفعة الدراسية
- 2009
- الكلية
- كلية تقنية المعلومات
- التخصص
- هندسة كمبيوتر
شكرا جزيلاا نخدمك في الافراح
امسامحه انه امس صورتها وكنت برفعها بس النت مخرف وبطيى والصوره كبيره مارتفعت
http://img585.imageshack.us/img585/8329/002txw.jpg
http://img403.imageshack.us/img403/8674/004yrj.jpg
مين ادرسه مياده ؟
ممكن حل توتريال Overloaading And Templates
باجر عندي لانه كويز
امسامحه انه امس صورتها وكنت برفعها بس النت مخرف وبطيى والصوره كبيره مارتفعت
http://img585.imageshack.us/img585/8329/002txw.jpg
http://img403.imageshack.us/img403/8674/004yrj.jpg
مين ادرسه مياده ؟
ممكن مساعتكم
يبين سهل بس ما عرفت احله
write a function named compareArrays that takes 4 parameters, two arrays of any type
(arrA[] and arrB[]) , and two integers sizeA and sizeB, being the number of elements in the two arrays respectively. The function should return boolean value which is true if the arrays are of the same size and all the corresponding elements in both arrays arrA and arrB are equal. Otherwise, it will return false. (i.e. return false if sizeA is different from sizeB or if any element of arrA is different from the corresponding element of arrB). Test the functions by writing a C++ program

#include<iostream>
using namespace std;
int CountOddNumbers(int size,int arr[])
{
int sum=0;
{
if(size==0)
return 0;
}
{
else if (arr[size]%2!=0)
return (arr[size]/10);
sum+=CountOddNumbers(arr[size]/10);
}
}
void main()
{
cout<<CountOddNumbers(12345);
}
ممكن مساعتكم
يبين سهل بس ما عرفت احله
write a function named compareArrays that takes 4 parameters, two arrays of any type
(arrA[] and arrB[]) , and two integers sizeA and sizeB, being the number of elements in the two arrays respectively. The function should return boolean value which is true if the arrays are of the same size and all the corresponding elements in both arrays arrA and arrB are equal. Otherwise, it will return false. (i.e. return false if sizeA is different from sizeB or if any element of arrA is different from the corresponding element of arrB). Test the functions by writing a C++ program
انه للحين مو فاهم ليه Recursion
احسه معقد عدل...
#include<iostream>
using namespace std;
struct student
{
int id;
float mark;
int*studentlist;
}
void main()
{
student m;
student*ptr;
int first,lest;
student studentlist[100];
//ptr=new student studentlist[100];
m=new student studentlist[100];
{
//if ((*ptr).id==-1)
//or if(m.id==-1)
cout<<"should be stop the program";
cout<<"enter the first name and lest name";
cin>>first>>lest;
if ((*ptr).id>=first&&(*ptr).id<=lest){
cout<<"enter of id and mark"<<endl;
cout<<(*ptr).id<<(*ptr).mark;
}
}


[/FONT]