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

c sharp Question

مغلق
بدأه aroma في 28 مارس 2005 · 6 رد · 600 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

alsalam alikom

i have a problem in small program

i have big expression and i want to check if there are a "?" then i will replace it by "("or ")" but i will have to get valid expression like

()()() or (()())

the problem in my code is i will need to randomly put the ( or) and check

so any one can give me a tip about the loop ?

please???

#2

انا حقا أريد ان أقوم بالمساعده , لكن انا مش فاهم قصدك يا aroma .

Realy , I wanna help but, I can't get it

#Read

http://MoutazShams.blogspot.com

projects003.gif

أعتذر عن التغيب هذه الأيام نظرا للانشغال المريب

#3

حسنا

المفروض ان يقوم المستخدم بادخال مصطلح اى مصطلح يعنى يحتوى على حروف و ارقام بالاضافة الى ؟ و ) و(

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

(())

او

()()()

او ((()()))

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

هل المطلوب واضح؟

#4

انا , بدأت أفهم قليلا , ولكى أتأكد من اني قد فهمت , اكتب الى يا أخي الخرج الذي تتمناه عندما يدخل المستخدم جمله كهذه :

Iam now )? Writing ( Ay7aga ? case break?) switch iam out) of area ? ()

#Read

http://MoutazShams.blogspot.com

projects003.gif

أعتذر عن التغيب هذه الأيام نظرا للانشغال المريب

#5

example i tried

??????((??

Possible combinations:

()()()(())

(())()(())

()(())(())

((()))(())

(()())(())

so the output should be int

=5

which is number of possible combinations

the one you submitted i didn't tried yet

but i believ that we will use some recursion

hope you got me

#6

By the way this is kind of cheating because this is an exam in charp-help.com and you may find the solution by your self

;)

Sr. Software Development Engineer
Hulu, LLC
My Blogs

#7

i wasn't going to send it honstly but i saied i will try it and my new version have some bugs

and iam fixing it now

but i really don't care about any contests at all

the more important is to know new ideas

thanx

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

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