اهلا وسهلا بك فى بوابة الثانوية العامة ... سجل الان

العودة   بوابة الثانوية العامة المصرية > القسم الإداري > أرشيف المنتدى

أرشيف المنتدى هنا نقل الموضوعات المكررة والروابط التى لا تعمل

مشاهدة نتائج الإستطلاع: هل تريد البرنامج المقرر Visual Basic 2008 express
نعم أريدة وأحتاجة 74 86.05%
لا شكراً غير مهم 12 13.95%
المصوتون: 86. أنت لم تصوت في هذا الإستطلاع

 
 
أدوات الموضوع ابحث في الموضوع انواع عرض الموضوع
  #1  
قديم 24-05-2013, 03:27 PM
الصورة الرمزية hassanalhawy
hassanalhawy hassanalhawy غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Sep 2010
المشاركات: 1,514
معدل تقييم المستوى: 16
hassanalhawy is on a distinguished road
افتراضي

لقد قمت بتطبيق ما قلته فى كود برمجة عادى وكانت النتيجة مشابهة
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim total As Short
Dim first, Second As Byte
first = 255
Second = 1
total = first + Second
MsgBox(total)
End Sub

ولكن ما علاقة ناتج الجمع 256 بالـ Byte
هل هذا له علاقة بكيفية معالجة البيانات داخل المعالج .؟
وإذا كان الأمر كذلك فهل هذه المعالجة لها إمتداد فى الذاكرة ؟
وهل عملية الإستدعاء من الذاكرة قبل المعالجة لها تأثير فى عملية التخزين؟
نريد توضيح لأن الأمر مبهم
__________________
يخطئ من يظن أن للذئاب ديناً
  #2  
قديم 24-05-2013, 05:03 PM
tmrmsr tmrmsr غير متواجد حالياً
عضو ممتاز
 
تاريخ التسجيل: Aug 2012
المشاركات: 303
معدل تقييم المستوى: 13
tmrmsr is on a distinguished road
Smile

اقتباس:
المشاركة الأصلية كتبت بواسطة hass****hawy مشاهدة المشاركة
لقد قمت بتطبيق ما قلته فى كود برمجة عادى وكانت النتيجة مشابهة
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim total As Short
Dim first, Second As Byte
first = 255
Second = 1
total = first + Second
MsgBox(total)
End Sub

ولكن ما علاقة ناتج الجمع 256 بالـ Byte
هل هذا له علاقة بكيفية معالجة البيانات داخل المعالج .؟
وإذا كان الأمر كذلك فهل هذه المعالجة لها إمتداد فى الذاكرة ؟
وهل عملية الإستدعاء من الذاكرة قبل المعالجة لها تأثير فى عملية التخزين؟
نريد توضيح لأن الأمر مبهم
256 خارج الحد
التعليمات تتم وفقا للمترجم Compiler الخاص باللغة وكذلك وفقا لما يقوم به Jit Compiler وكله باستخدام المعالج
الذي يدير الذاكرة الفرام ورك عن طريق CLR
وهذة المشاكل نتجت نتيجة اعتماد المبرمج على التحويل الضمني الذي يوفره لغة الفيجوال بيزيك
على عكس لغة C# لذلك كثير يفضلونها عن الفيجوال بيزيك
  #3  
قديم 24-05-2013, 04:04 PM
الصورة الرمزية hassanalhawy
hassanalhawy hassanalhawy غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Sep 2010
المشاركات: 1,514
معدل تقييم المستوى: 16
hassanalhawy is on a distinguished road
افتراضي

وممكن توضح بنفس الكيفية ما الذى يحث عند تنفيذ الكود التالى

function sum(byval first as byte, byval second as short) as byte
dim total as short
total = first + second
return total

end function



private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click
msgbox(sum(255, 1))
end sub
__________________
يخطئ من يظن أن للذئاب ديناً
  #4  
قديم 24-05-2013, 07:50 PM
tmrmsr tmrmsr غير متواجد حالياً
عضو ممتاز
 
تاريخ التسجيل: Aug 2012
المشاركات: 303
معدل تقييم المستوى: 13
tmrmsr is on a distinguished road
Smile

اقتباس:
المشاركة الأصلية كتبت بواسطة hass****hawy مشاهدة المشاركة
وممكن توضح بنفس الكيفية ما الذى يحث عند تنفيذ الكود التالى

function sum(byval first as byte, byval second as short) as byte
dim total as short
total = first + second
return total

end function



private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click
msgbox(sum(255, 1))

end sub
عملية التخصيص للمتغير Total سوف تتم بنجاح
لكن عملية التحويل من Short إلى Byte
لن تنجح بسبب تخطي القيمة للحد ونجد الخطأ يظهر عند سطر Return
  #5  
قديم 24-05-2013, 04:16 PM
سيف سالم سيف سالم غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Jul 2008
العمر: 57
المشاركات: 4,642
معدل تقييم المستوى: 22
سيف سالم is on a distinguished road
افتراضي

الموضوع عايز بحث كبير
واطلاع اكثر
وحيث ان المادة ستكون نشاط
اري تأجيل المناقشات وانا على يقين
انه لن يكون هناك اي اختلاف بعد الان
وستكون الحياة التكنولوجية والبرمجية المصرية بنى بنى بنى
وان النهضة التى ستشهدها مصر في عالم تعليم الكمبيوتر لاطفال وشباب مصر
قد تفوق بعشرات المرات النهضة الكهربائية التى نعيشها الان
اللهم وفق الرئيس د محمد مرسي الى ما يفرضه عليه مستشاري وزير التربية والتعليم
وسنحيا كراما
  #6  
قديم 24-05-2013, 04:52 PM
الصورة الرمزية MR : ABO BATTA
MR : ABO BATTA MR : ABO BATTA غير متواجد حالياً
معلم الحاسب الآلى
 
تاريخ التسجيل: Jan 2009
المشاركات: 14,295
معدل تقييم المستوى: 31
MR : ABO BATTA will become famous soon enough
افتراضي

اقتباس:
المشاركة الأصلية كتبت بواسطة سيف سالم مشاهدة المشاركة
الموضوع عايز بحث كبير

واطلاع اكثر
وحيث ان المادة ستكون نشاط
اري تأجيل المناقشات وانا على يقين
انه لن يكون هناك اي اختلاف بعد الان
وستكون الحياة التكنولوجية والبرمجية المصرية بنى بنى بنى
وان النهضة التى ستشهدها مصر في عالم تعليم الكمبيوتر لاطفال وشباب مصر
قد تفوق بعشرات المرات النهضة الكهربائية التى نعيشها الان
اللهم وفق الرئيس د محمد مرسي الى ما يفرضه عليه مستشاري وزير التربية والتعليم

وسنحيا كراما

قدر الله وما شاء فعل
وله سبحانه الأمر من قبل ومن بعد
__________________
يارب ارفع عنَّا وعن مصر الفتن ما ظهر منها وما بطن
واحفظ بلاد المسلمين من كل شر وسوء يا أرحم الراحمين
  #7  
قديم 24-05-2013, 04:22 PM
الصورة الرمزية hassanalhawy
hassanalhawy hassanalhawy غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Sep 2010
المشاركات: 1,514
معدل تقييم المستوى: 16
hassanalhawy is on a distinguished road
افتراضي

إنا لله وإنا إليه راجعون
__________________
يخطئ من يظن أن للذئاب ديناً
  #8  
قديم 25-05-2013, 03:31 PM
سيف سالم سيف سالم غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Jul 2008
العمر: 57
المشاركات: 4,642
معدل تقييم المستوى: 22
سيف سالم is on a distinguished road
افتراضي

Function procedure performs a task and then returns control to the calling code. When it returns control, it also returns a value to the calling code.
Each time the procedure is called, its statements run, starting with the first executable statement after the Function statement and ending with the first End Function, Exit Function, or Return statement encountered.
You can define a Function procedure in a module, class, or structure. It is Public by default, which means you can call it from anywhere in your application that has access to the module, class, or structure in which you defined it.
A Function procedure can take arguments, such as constants, variables, or expressions, which are passed to it by the calling code.

Declaration Syntax

The syntax for declaring a Function procedure is as follows:
[modifiers] Function functionname[(parameterlist)] As returntype
' Statements of the Function procedure.
End Function
The modifiers can specify access level and information regarding overloading, overriding, sharing, and shadowing. For more information, see Function Statement (Visual Basic).
You declare each parameter the same way you do for Sub Procedures.
Data Type

Every Function procedure has a data type, just as every variable does. This data type is specified by the As clause in the Function statement, and it determines the data type of the value the function returns to the calling code. The following sample declarations illustrate this.
Copy Code Function yesterday() As Date End Function Function findSqrt(ByVal radicand As Single) As Single End Function
For more information, see "Parts" in Function Statement (Visual Basic).


Returning Values

The value a Function procedure sends back to the calling code is called its return value. The procedure returns this value in one of two ways:
  • It assigns a value to its own function name in one or more statements of the procedure. Control does not return to the calling program until an Exit Function or End Function statement is executed. The following example illustrates this.
    Function functionname[(parameterlist)] As returntype
    ' The following statement does not transfer control back to the calling code.
    functionname = expression
    ' When control returns to the calling code, expression is the return value.
    End Function
  • It uses the Return statement to specify the return value, and returns control immediately to the calling program. The following example illustrates this.
    Function functionname[(parameterlist)] As returntype
    ' The following statement immediately transfers control back to the calling code and returns the value of expression.
    Returnexpression
    End Function
The advantage of assigning the return value to the function name is that control does not return from the procedure until it encounters an Exit Function or End Function statement. This allows you to assign a preliminary value and adjust it later if necessary.
For more information, see "Return Value" in Function Statement (Visual Basic).
Returning Arrays

If the Function procedure returns an array data type, you cannot access the individual elements of the array within the function. If you attempt to do this, the compiler interprets it as a recursive call to the procedure. The following example illustrates this.
Function allOnes(ByVal n As Integer) As Integer()
For i As Integer = 1 To n - 1
' The following statement generates a COMPILER ERROR.
allOnes(i) = 1
Next i
' The following statement generates a COMPILER ERROR.
Return allOnes()
End Function
In the preceding example, the compiler interprets the attempted assignment allOnes(i) = 1 as a call to allOnes on the left side of an assignment statement. It interprets the attempted Return allOnes() as a call with no argument. Both statements generate compiler errors.


Calling Syntax

You invoke a Function procedure by including its name and arguments either on the right side of an assignment statement or in an expression. You must provide values for all arguments that are not optional, and you must enclose the argument list in parentheses. If no arguments are supplied, you can optionally omit the parentheses.
The syntax for a call to a Function procedure is as follows:
lvalue = functionname[(argumentlist)]
If ((functionname[(argumentlist)] / 3) <= expression) Then
When you call a Function procedure, you do not have to use its return value. If you do not, all the actions of the function are performed, but the return value is ignored. MsgBox is often called in this manner.
Illustration of Declaration and Call

The following Function procedure calculates the longest side, or hypotenuse, of a right triangle, given the values for the other two sides.
Visual Basic Copy Code Function hypotenuse(ByVal side1 As Single, ByVal side2 As Single) As Single Return Math.Sqrt((side1 ^ 2) + (side2 ^ 2)) End Function

The following example shows a typical call to hypotenuse.
Visual Basic Copy Code Dim testLength, testHypotenuse As Single testHypotenuse = hypotenuse(testLength, 10.7)



Visual Basic Runtime Functions

The Visual Basic runtime provides many functions, located in the Microsoft

ms-help://MS.VSCC.v90/MS.msdnexpress.v90.en/dv_vbalr/html/1b9f632c-553b-4cb6-920a-ded117ead8c0.htm

طبعا
مين حيفهم كلام بتاع الشركة المنتجة
تحس انهم بيكتروا الكلام علشان يكون كلامهم كتير
الغريبة في الامر رغم كتر كلام الشركة المنتجة بلا لازم لم تثار نقطة الاختلاف بيننا نحن من يستخدم المنتج - لسنا من انتجنا ولن يحدث في ظل وزيرنا ومستشاريه -
بس لفت نظري الالوان السابقة
من يجيد الترجمة
او على الاقل
يكون فهمة متوسط باللغة الانجليزي
علشان ان فهمتها بالشبه
ممكن تفسير لمثلي الذي ياخذها بالشبه
  #9  
قديم 26-05-2013, 02:31 PM
الصورة الرمزية hassanalhawy
hassanalhawy hassanalhawy غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Sep 2010
المشاركات: 1,514
معدل تقييم المستوى: 16
hassanalhawy is on a distinguished road
افتراضي

اقتباس:
المشاركة الأصلية كتبت بواسطة سيف سالم مشاهدة المشاركة
طبعا
مين حيفهم كلام بتاع الشركة المنتجة
تحس انهم بيكتروا الكلام علشان يكون كلامهم كتير
الغريبة في الامر رغم كتر كلام الشركة المنتجة بلا لازم لم تثار نقطة الاختلاف بيننا نحن من يستخدم المنتج - لسنا من انتجنا ولن يحدث في ظل وزيرنا ومستشاريه -
بس لفت نظري الالوان السابقة
من يجيد الترجمة
او على الاقل
يكون فهمة متوسط باللغة الانجليزي
علشان ان فهمتها بالشبه
ممكن تفسير لمثلي الذي ياخذها بالشبه
آسف أستاذ / سيف و أستاذ / تامر
على عدم مشاركتى فى اليومين السابقين بسبب إنقطاع الإنترنت
__________________
يخطئ من يظن أن للذئاب ديناً
  #10  
قديم 26-05-2013, 02:37 PM
سيف سالم سيف سالم غير متواجد حالياً
مــٌــعلــم
 
تاريخ التسجيل: Jul 2008
العمر: 57
المشاركات: 4,642
معدل تقييم المستوى: 22
سيف سالم is on a distinguished road
افتراضي

اقتباس:
المشاركة الأصلية كتبت بواسطة hass****hawy مشاهدة المشاركة
آسف أستاذ / سيف و أستاذ / تامر
على عدم مشاركتى فى اليومين السابقين بسبب إنقطاع الإنترنت
مبارك عودة النت
لو ممكن تعلق على كلام بتاع الشركة المنتجة
او على الاقل ترجمتع
وكذالك الملاحظ
اما الاستاذ تامر كلامه تناقض
مرة شمال ومرة يمين
  #11  
قديم 25-05-2013, 11:10 PM
برنس القومية برنس القومية غير متواجد حالياً
عضو جديد
 
تاريخ التسجيل: Nov 2010
المشاركات: 21
معدل تقييم المستوى: 0
برنس القومية is on a distinguished road
Post ارجوكم مسااعدة سريعة

انا من الاسكندرية و كان السؤال الاخير احابته النموذجية

السؤال الرابع
1- Case 0

2- Case Is < 0

3- Case Is > 0 او Case Else

4- End Select



انا عملت 1 - Case Degree=0


2- Case degree <0

3-Case Degree >0

4-End Selcect

فهل ده ينقصني درجة و نص و انا متاكد ان مفيش اخطاء تانية في الامتحان علشان لو دة صح اعمل اعادة تصحيح بعد اذنكم
  #12  
قديم 26-05-2013, 01:35 AM
mandoohassan mandoohassan غير متواجد حالياً
عضو جديد
 
تاريخ التسجيل: Apr 2013
المشاركات: 7
معدل تقييم المستوى: 0
mandoohassan is on a distinguished road
افتراضي

شكررررررررررررررررررررررررررررا
  #13  
قديم 26-05-2013, 06:07 PM
arab50 arab50 غير متواجد حالياً
موقوف
 
تاريخ التسجيل: Jan 2012
العمر: 30
المشاركات: 199
معدل تقييم المستوى: 0
arab50 is on a distinguished road
افتراضي

يا جماعة حد يقولى منهج الحاسب حيتغير
  #14  
قديم 26-05-2013, 06:29 PM
الصورة الرمزية ميدو ميدو
ميدو ميدو ميدو ميدو غير متواجد حالياً
عضو فعال
 
تاريخ التسجيل: Aug 2006
المشاركات: 156
معدل تقييم المستوى: 0
ميدو ميدو is an unknown quantity at this point
افتراضي

اخر الاخبار اخي

http://www.almasryalyoum.com/node/1685616

http://www.almasryalyoum.com/node/1575866

حد من السادة اللي ليهم اتصالات بالوزارة يعرف ظروف ماده الحاسب الالي اية مقررة ولا لا واية ظروفها
__________________
don't cry over spilt milk
  #15  
قديم 27-05-2013, 12:10 AM
عبدة12345 عبدة12345 غير متواجد حالياً
عضو جديد
 
تاريخ التسجيل: Aug 2009
المشاركات: 22
معدل تقييم المستوى: 0
عبدة12345 is on a distinguished road
Exll نموذج اجابة دمياط

محدش راح التصحيح

عشان يجيب نموذج الاجابة

انا حاسس انه فيه غلطة

dim x as byte=344

فى نموذج الاجابة : خطأ وقت التشغيل runtimw error

وكده خطأ المفروض خطأ املائى ونحوى syntax error

كارثة يا سادة

وعشان يعالجو الموضوع اللى كتب اى نوع خطأ ادالو الدرجة
 

العلامات المرجعية

الكلمات الدلالية (Tags)
أبوزياد, اتفة الفصل الرابع وورد, شرح الترم الثاني فيديو


ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا يمكنك اضافة مرفقات
لا يمكنك تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

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


جميع الأوقات بتوقيت GMT +2. الساعة الآن 08:01 AM.