تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
مساعدة في برنامج جدول الموظفين بـ console application
#1
اطلب المساعدة في برنامج يظهر جدول الموظفين لـ20 موظف في شكل مصفوفة
وفي رأس الجدول يطبع الاسم والعنوان والقسم والمرتب
الرد }}}
تم الشكر بواسطة:
#2
ارفق مثالك للتعديل عليه
الرد }}}
تم الشكر بواسطة:
#3
هذا هو البرنامج مشكلتي الان في الاستعلام في البرنامج مع العلم انه غير متصل بقاعدة بيانات
مثلا استعلام عن الموظفين الذين يقل مرتبهم عن 1000




Module Module1
Structure employees
Dim name As String
Dim address As String
Dim department As String
Dim salary As Double
End Structure
Sub Main()
Console.WriteLine("name address department salary")
Dim i, j As Integer
Dim a(2, 3) As employees
For i = 1 To 2
For j = 1 To 3
a(i, j).name = InputBox("enter the name")
a(i, j).address = InputBox("enter the address")
a(i, j).department = InputBox("enter the department")
a(i, j).salary = InputBox("enter the salary")
Next j
Next i

For i = 1 To 2
For j = 1 To 3
Console.WriteLine(a(i, j).name & " " & a(i, j).address & " " & a(i, j).department & " " & a(i, j).salary)
Console.ReadLine()
Next
Next
Dim evensQuery = From salary In employees
Where num Mod 2 = 0
Select num
For Each number In evensQuery
Console.Write(number & " ")
Next
End Sub
End Module
الرد }}}
تم الشكر بواسطة:



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


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم