الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

انا على استعداد لمساعدة اى احد فى ال C++

مغلقرائج
بدأه Mohamed Meshref في 12 فبراير 2005 · 78 رد · 6,948 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

انا محمد مشرف طالب بالسنة النهائية بكلية علوم الحاسب وكنت اعمل فى برمجة الألعاب وانضممت حديثا الى شركة ميكروسوفت الفرع الرئيسى ب Redmond, Washington فى فريق تطوير محرك ال SQL Server .

انا هنا على استعداد تام للمساعدة فى اي مشكلة برمجية فى ال C++

وبس :D

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#2

هلا والله

و مشكور على عرض خدماتك للمساعده و إن شاء الله يكون بموازين حسناتك

عندي سؤال لو سمحت

اول سؤال

add and subtract 2 one-dimentional matrix & compute the complexity

ثاني سؤال

program to multiply two square matrices of order 3x3 & compute the complexity

بصراحه انا دار راسي و مو عارفة ايش اسوي اتمنى انك تساعدني

#4

هل استطيع الأجابة بالأنجليرية حيث اننى بطىء جدا فى الكتابة بالعربية؟

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#5

إتفضل خذ راحتك أجب بالإنجليزي كما تريد :)

banner_60_468.gif

NOTHING IS IMPOSSIBLE

#7

اعدك اننى بمجرد رجوعى الى المنزل سوف اشرح لك كيف تقوب بهذه العملبة :)

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#8

وينك يا اخوي مارديت؟

انا حاولت بس طلعت محاولتي غلط و الدكتور قالي احاول مرة ثانيه و لازم تكون صح عشان يعطيني العلامه الكامله

و ياريت اذا تقدر تشرح بالانجليزي لأنه اسهل لي للفهم

#9

About the first question it's simply an operation of adding two linear arrays, and i had made the code simple as possible:

void AddTwoVectors(int vector1[],int vector2[],int Size, int ** Output)
{
	if(Size < 0)
  return;
	for(int i = 0;i<Size;i++)
	{
  (*Output) = vector1 + vector2;
	}
}

it takes the first matrix as the first argument and the second matrix as the second argument and the size of the matrices as third argument and it take a pointer for the result matrix which is created in the calling function.

The complexity is O(N) which means linear increment.

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#10

About the second question, i had created the simplest code for this operation:

void MultiplyTwoMatrices(int ** Matrix1,int ** Matrix2,int *** Output)
{
	for(int i = 0;i<3;i++)
	{
  for(int j = 0;j<3;j++)
  {
 	 (*Output)[j] = 0;
 	 for(int k = 0;k<3;k++)
 	 {
    (*Output)[j] += Matrix1[k] * Matrix2[k][j];
 	 }
  }
	}
}

This code is valid only in your case (two 3x3 matrices) and its complexity is

O(N^3) which means that the processing space is power 3 of the input and in this case is 9

it takes the first double dimension matrix as first argument, the second matrix as second argument and the third argument is the output as in the last example>

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#11

يعطيك الف عافية و يجعله في موازين حسناتك يااارب

و الله ينولك اللي فبالك

#12

HI BROTHER

I SAW UR TOPIC N M VERY GLAD THAT U CAN HELP US

i have a project to do for this semesterso i don't know do u have time to help me for that:)

تم تعديل هذه المشاركة بواسطة {{unknown}} في 13 فبراير 2005 في 22:28

#13

You had sent me on private as i think and i had replayed you :)

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#14

أخ محمد الف شكر لعرض مساعدتك

لدي سؤال ام استفسار علي اجد لديك المشورة ..

مطلوب مني تصميم COM Component باستخدام اي لغه برمجة وعند قراتي وجدت ان ATL

وهي مثل C++ مع بعض الاضافات تمكننا من بناء ال COM بسهولة .. وهي موجودة مع VC++ وتعلمت بناء الكوم بها .. لكن سؤالي المهم ان الكوم المطلوب بناء الي ال Class

وظيفته هو اضافه وتعديل وحذف من قاعدة بيانات ، هل استطيع باستخدام ال ATL الربط بقاعده بيانات مثلا اكسس او SQL ؟؟ وان كان الجواب بنعم .. هل من الممكن شرح الخطوات لي؟؟

الف شكر

#15

ATL is nothing more that a wrapper to the com, like MFC to Win32 APIs, you can write any code inside ATL, just use the wizard to add a new ATL object and then add your functions inside it

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#16

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

write a programme that converts a number entered in roman numerals to decimal. your programme should consist class .say roman type.an object of the type roman type should do the following:

1-store the number as a roman numeral

2-convert and stor the number into decimal

3-print the number as a roman numeral or decimal number as requested by the user

the decimal valus of the roman numerals are

M 1000

D 500

C 100

L 50

X 10

V 5

1 I

ارجو الرد علي في اقرب وقتتتت ممكن.... البرنامج غير مفهوم ارجووو شرح لي طريقة حله

Mini ProfilePMEmail Poster

Top

1 مستخدم يقرأون هذا الموضوع (0 ض

#17

أخ محمد الف شكر على الرد والحمدلله اطمنت

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

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

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

مشكور

#18

as i said before i may answer the question or not depends only whether i know the answer or not, but the thing you must know that i dont know nearly any thing about Databases and Web programming, cause i hate them both :D

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#19

you mean MMDC = 2600 or 1000600??

cause the problem is not clear

Mohamed Meshref

Performance Engineer

SQL Server Engine Team

Microsoft Corporation

Redmond, Washington, USA

http://www.microsoft.com/sql/

Blog: http://www.mmeshref.com

#20

iam asking about how could i print afile named man.txt by c++

كيف يمكن لى طباعة ملف باسم man.txt باستخدام c++ وجزاك الله خيرا

#21

السلام عليكم

إذا أردت في خوارزمية عادية المقارنة بين ثلاث اعداد وتحديد ايها الأكبر تكتبها هكذا:

if(a>b>c)1

print a

كيف استطيع القيام بنفس العملية في سي بلس بلس

طبعا جربت نفس الشيء لكن بدون فائدة

#22

السلام عليكم ورحمة الله وبركاته

بالنسبه للبرنامح الذي طرحته في الفكره فيه هو ان يدخل المستخدم احد الحروفMCXIV

وتكون قيمها ثابته ومن م اذا ادخل المستخدم MCXIV

وهي عبارة عن STRING

يقوم البرنامح بقراءه الكلمه وتخزين كل قيمه حرف في مصفووفه.....ومن

م يطلب المسخدم اذا كان يريد طباعة الاحرف او الارقام فاذا كان يريد

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

انا حاولة وهذه محاولتي ولكن لم يعمل البرنامج معي فارجو القاء النظر عليه

# include <iostream.h>

#include <string>

using namespace std;

class romanType

{

public:

romanType();

void set(string);

void print();

void store(string);

private:

string str;

};

int main()

{

romanType a;

string s;

cin>>s;

a.set(s);

a.store(string);

return 0;

}

romanType::romanType()

{

str="";

}

romanType::set(string s)

{

str=s;

}

void romanType::store(string s)

{

int y[7],j,i;

for(i=0;i<7;i++)

for(j=0;j<7;j++)

{

if(s=='M')

y=1000;

else

if(s=='D')

y[j]=500;

else

if(s=='C')

y[j]=100;

else

if(s=='L')

y[j]=50;

else

if(s=='X')

y[j]=10;

else

if(s=='V')

y[j]=5;

else

if(s=='I')

y[j]=1;

}

void print();

{

for(j=0;j<7;j++)

cout<<y;

}

void romanType:: print()

{

for(j=0;j<7;j++)

cout<<y[j];

}

}

#23

طيب انا عندي سؤال

بالنسبة للواجهة الرسومية للسي ++

انا عندي مشروع والاستاذة طالبة منا نسويه بواجهة رسومية

وانا ماعرف فيها شي ممكن تساعديني كيف اسويها

واكون شاكرة لك

#24

السلام عليكم

اريد ان تقدم لي تمارين تساعدني

في c++ عن file ... fstream how read and write to file

template

#25
 string name;
 long int y[7];
int i,j=0;


Student:: Student()
{
	Name = ""; // BECAUSE ITS A STRING

}

void Student:: setAll(string name)
{

	cout<<"Please enter your name" <<endl;
	cin>>name;


Name = name;

}

void Student:: getAll(string& name)
{
	name = Name;

}

void Student:: computeType()
{
	for(i=0;i!='\0';i++)

{
if(name=='M')
y[j]=1000;
else
if(name=='D')
y[j]=500;
else
if(name=='C')
y[j]=100;
else
if(name=='L')
y[j]=50;
else
if(name=='X')
y[j]=10;
else
if(name=='V')
y[j]=5;
else
if(name=='I')
y[j]=1;
	}
j++;

}

void Student:: print()
{
	getAll(name);
	cout<<"the student name is:"<<name<<endl;
	for(j=0;j<7;j++)
cout<<y[j];

computeType();


}

int main ()
{
	Student std1;

	std1.setAll(name);
	std1.getAll(name);
	std1.print();

	return 0;
}

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

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…