عالم برمجةوتقنية الحاسوب C. P. W
742 subscribers
496 photos
55 videos
260 files
480 links
عالم الحاسوب برمجه وتقنيه وتطوير شرح كل ما يتطلب في مجال علوم الحاسوب والبرمجة
https://t.me/programming_C_w
قنات الجرافيكس @l_d_gh
#Digitalmarketing
#programming
#AI #CPA
#learn
التواصل معي @Eng_sharaf1
Download Telegram
شكرا للمشتركين الجدد
وتحيه للقديمين ❤️
3👍3👨‍💻2
- مقدمة في لغة CSS
----------------------
قبل البدء بتعلم لغة CSS عليك أن تكون بمعرفة تامة بلغتي HTML وXHTML لما لهما من أهمية في موضوعنا هذا.
-------------------------------

- ما هي لغة CSS؟
-------------------
• لغة CSS هي إختصار للعبارة Cascading Style Sheets وتعني صفحة الأنماط المتعاقبة.
• ‏تستخدم لكيفية ظهور وسوم لغة HTML.
• أضيفت هذه اللغة للنسخة الرابعة من لغة HTML وهي HTML 4.0.
• تستخدم لغة CSS لحل مشاكل لغة HTML ولتوفير الكثير من العمل و الوقت.
• جميع الانماط المتعاقبة تجمع في ملف خارجي تحت اسم css.
-------------------------------

- لماذا نستخدم لغة CSS؟
---------------------
• لقد حلت لغة CSS الكثير من المشاكل للغة HTML ولتوفير الوقت والجهد المبذول لعمل صفحة ما او موقع كامل.
• حيث أنك لا تحتاج إلى إعطاء كل وسم HTML سمة معينة بل حصرها بوسم معين عن طريق لغة CSS وذلك لسهولة العمل على تصميم الصفحات.
-------------------------------

- لتحميل بعض الكتب المفيدة في لغة css مباشرة من ميديا فاير
--------------------
كتاب شرح لغة CSS...
https://www.mediafire.com/file/95s8yfocdd0h6ab/book+css+_+Programmers1.pdf/file

كتاب تعلم لغة css3...
https://www.mediafire.com/file/5ton3tbi8z2nyp6/Learn+css3+_+Programmers1.pdf/file

كتاب برمجة مواقع الإنترنت باستخدام لغة CSS
https://www.mediafire.com/file/7mvl81zzzd9dn0x/Website+programming+using+CSS+_+Programmers1.pdf/file

كتاب برمجة الإستايلات بـ CSS...

https://www.mediafire.com/file/8jyrtiwsfzzhcn6/Programming+styles+using+css+_+Programmers1.pdf/file

@codedevelopment
1
مجموعة تحت اشراف المدرسين 5 خمسة مدرسين شرفونا
اسئلة في السي بلس بلس مصفوفات
1. Write a C ++ program to find the sum of each column in a 2D array.

2. Write a C ++ program to find the transpose of a matrix. The transpose of a matrix is obtained by swapping its rows with columns

3. Write C ++ program, to find the greatest number in main diagonal in array ( 3 ^ * 3)

4. Write a C ++ program to arrange the 2D array ( 2 ^ * 3) in ascending order

5. Write C ++ program, to find the summation of odd numbers in 2D array(2*3)

6. Write C ++ program that searches for a specific character in a 2D array of size 2 * 3 . (If the character is found, it displays the position of the character, If the character is not found, it notifies the user.)

7. Write C ++ program, to read A[n, n] of character, then find array B and array C, such that B contain only capital letters and C contain only small letters.
من خلال النص ،هذا ترجمته
1. اكتب برنامج C++ لإيجاد مجموع كل عمود في مصفوفة ثنائية الأبعاد.

2. اكتب برنامج C++ لإيجاد المصفوفة المتناظرة. يتم الحصول على المصفوفة المتناظرة من خلال تبديل الصفوف بالأعمدة.

3. اكتب برنامج C++ لإيجاد أكبر رقم في القطر الرئيسي لمصفوفة 3×3.

4. اكتب برنامج C++ لترتيب مصفوفة ثنائية الأبعاد 2×3 بترتيب تصاعدي.

5. اكتب برنامج C++ لإيجاد مجموع الأعداد الفردية في مصفوفة ثنائية الأبعاد 2×3.

6. اكتب برنامج C++ للبحث عن حرف معين في مصفوفة ثنائية الأبعاد بحجم 2×3، مع عرض مكانه إذا وُجد، وإعلام المستخدم إذا لم يُعثر عليه.

7. اكتب برنامج C++ لقراءة مصفوفة A بحجم [n,n] من الأحرف، ثم إيجاد المصفوفتين B و C بحيث تحتوي B على الحروف الكبيرة فقط وC على الحروف الصغيرة فقط.
السؤال الاول
١. اكتب برنامج عشان يحسب مجموع كل عمود في مصفوفة:
#include <iostream>
using namespace std;

int main() {
int rows = 3, cols = 3;
int arr[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for (int col = 0; col < cols; ++col) {
int sum = 0;
for (int row = 0; row < rows; ++row) {
sum += arr[row][col];
}
cout << "Sum of column " << col + 1 << " is: " << sum << endl;
}
return 0;
}
٢.اكتب برنامج للحصول على المصفوفة المتناظرة

#include <iostream>
using namespace std;

int main() {
int rows = 3, cols = 3;
int matrix[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
int transpose[3][3];
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
transpose[j][i] = matrix[i][j];
}
}
cout << "Transpose matrix:\n";
for (int i = 0; i < cols; ++i) {
for (int j = 0; j < rows; ++j) {
cout << transpose[i][j] << " ";
}
cout << endl;
}
return 0;
}
٣. برنامج لإيجاد أكبر رقم في القطر الرئيسي لمصفوفة 3×3
#include <iostream>
using namespace std;

int main() {
int matrix[3][3] = {{1, 5, 3}, {4, 10, 6}, {7, 8, 2}};
int maxDiagonal = matrix[0][0];
for (int i = 1; i < 3; ++i) {
if (matrix[i][i] > maxDiagonal) {
maxDiagonal = matrix[i][i];
}
}
cout << "Greatest number in the main diagonal is: " << maxDiagonal << endl;
return 0;
}
٤. اكتب برنامج عمله بيرتب مصفوفة 2×3 بترتيب تصاعدي
#include <iostream>
#include <algorithm>
using namespace std;

int main() {
int arr[2][3] = {{5, 2, 9}, {1, 6, 3}};
int temp[6], index = 0;
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 3; ++j)
temp[index++] = arr[i][j];

sort(temp, temp + 6);
index = 0;
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 3; ++j)
arr[i][j] = temp[index++];

cout << "Sorted matrix:\n";
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 3; ++j) {
cout << arr[i][j] << " ";
}
cout << endl;
}
return 0;
}

٥.اكتب برنامج لحساب مجموع الأعداد الفردية في مصفوفة 2×3
#include <iostream>
using namespace std;

int main() {
int arr[2][3] = {{1, 2, 3}, {4, 5, 6}};
int sumOdd = 0;
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 3; ++j)
if (arr[i][j] % 2 != 0)
sumOdd += arr[i][j];

cout << "Sum of odd numbers: " << sumOdd << endl;
return 0;
}
٧.اكتب برنامج للبحث عن حرف معين في مصفوفة 2×3
#include <iostream>
using namespace std;

int main() {
char arr[2][3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}};
char target;
cout << "Enter a character to search for: ";
cin >> target;
bool found = false;

for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 3; ++j) {
if (arr[i][j] == target) {
cout << "Character found at position: [" << i << "][" << j << "]\n";
found = true;
}
}
}
if (!found) cout << "Character not found.\n";
return 0;
}

٧. اكتب برنامج لقراءة مصفوفة حروف وإيجاد B و C

#include <iostream>
using namespace std;

int main() {
int n;
cout << "Enter the size of the matrix: ";
cin >> n;
char A[n][n], B[n*n], C[n*n];
int bIndex = 0, cIndex = 0;

cout << "Enter characters for matrix A:\n";
for (int i = 0; i < n; ++i)
for (int j = 0; j < n; ++j)
cin >> A[i][j];

for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
if (isupper(A[i][j])) B[bIndex++] = A[i][j];
else if (islower(A[i][j])) C[cIndex++] = A[i][j];
}
}

cout << "B (Capital letters): ";
for (int i = 0; i < bIndex; ++i) cout << B[i] << " ";
cout << "\nC (Small letters): ";
for (int i = 0; i < cIndex; ++i) cout << C[i] << " ";
cout << endl;
return 0;
}
اسئلة في السي بلس بلس عن المصفوفات

1. Program to Count Even
and Odd Numbers in an Array





2. Program to Find the Maximum Element in an Array

3. Program to Reverse the Elements of an Array
4. Program to Count Even and Odd Numbers in an Array

5. Program to Search for an Element in an Array and print it's location

6. Program to Split a 1D Array into Uppercase and Lowercase Arrays
طيب ، شوفي ، اول برنامج معانا هو
١. برنامج لعد الأعداد الزوجية والفردية في مصفوفة

#include <iostream>
using namespace std;

int main() {
    int arr[] = {2, 5, 7, 10, 8};
    int evenCount = 0, oddCount = 0;
    for (int i = 0; i < 5; i++) {
        if (arr[i] % 2 == 0)
            evenCount++;
        else
            oddCount++;
    }
    cout << "عدد الأعداد الزوجية: " << evenCount << endl;
    cout << "عدد الأعداد الفردية: " << oddCount << endl;
    return 0;
}
احنا هنا بنعد كل الأعداد اللي في المصفوفة، لو العدد بيتقسم على 2 بدون باقي (يعني زوجي) بنزود الـ evenCount، ولو العكس بنزود الـ oddCount.
..........................................................
٢. برنامج لإيجاد أكبر عنصر في المصفوفة

#include <iostream>
using namespace std;

int main() {
    int arr[] = {3, 9, 1, 15, 7};
    int maxElement = arr[0];
    for (int i = 1; i < 5; i++) {
        if (arr[i] > maxElement)
            maxElement = arr[i];
    }
    cout << "أكبر عنصر في المصفوفة هو: " << maxElement << endl;
    return 0;
}
اخدنا أول عنصر على إنه أكبر عنصر، وبعدها بنقارن كل الأرقام اللي في المصفوفة لو لقينا رقم أكبر بنخليه هو الجديد
...........................................................
٣. برنامج لعكس عناصر المصفوفة

#include <iostream>
using namespace std;

int main() {
    int arr[] = {1, 2, 3, 4, 5};
    int n = 5;
    cout << "المصفوفة قبل العكس: ";
    for (int i = 0; i < n; i++)
        cout << arr[i] << " ";
   
    cout << "\nالمصفوفة بعد العكس: ";
    for (int i = n - 1; i >= 0; i--)
        cout << arr[i] << " ";
    cout << endl;
    return 0;
}
هنا طبعنا العناصر من آخر المصفوفة لأولها علشان نعمل عكس للترتيب.
...........................................................
٤ برنامج لعد الأعداد الزوجية والفردية في مصفوفة (مكرر)

الكود والشرح نفس البرنامج الأول
٥. برنامج للبحث عن عنصر في المصفوفة وطباعه مكانه
#include <iostream>
using namespace std;

int main() {
    int arr[] = {4, 7, 2, 9, 5};
    int target;
    cout << "ادخل العنصر اللي عايز تدور عليه: ";
    cin >> target;
    bool found = false;

    for (int i = 0; i < 5; i++) {
        if (arr[i] == target) {
            cout << "العنصر موجود في المكان رقم: " << i << endl;
            found = true;
            break;
        }
    }
    if (!found)
        cout << "العنصر مش موجود." << endl;
    return 0;
}

هنا احنا بنبحث في المصفوفة عن رقم معين، لو لقيناه بنطبع مكانه، ولو مش موجود بنقول للمستخدم
.........................................................
٦. برنامج لتقسيم مصفوفة 1D لحروف كبيرة وصغيرة
#include <iostream>
#include <cctype>
using namespace std;

int main() {
    char arr[] = {'A', 'b', 'C', 'd', 'E'};
    char upper[5], lower[5];
    int uIndex = 0, lIndex = 0;

    for (int i = 0; i < 5; i++) {
        if (isupper(arr[i]))
            upper[uIndex++] = arr[i];
        else if (islower(arr[i]))
            lower[lIndex++] = arr[i];
    }

    cout << "الحروف الكبيرة: ";
    for (int i = 0; i < uIndex; i++)
        cout << upper[i] << " ";
   
    cout << "\nالحروف الصغيرة: ";
    for (int i = 0; i < lIndex; i++)
        cout << lower[i] << " ";
    cout << endl;
    return 0;
}

في الكود دا احنا بنقرا كل حرف في المصفوفة، لو كبير بنضيفه في مصفوفة الحروف الكبيرة، ولو صغير بنضيفه في مصفوفة الحروف الصغيرة
14🔥2💯2
ايش رايكم اعطيكم بوت عملات قوه blum بلوم من شان ما تذاكرو تحصلو عملات
👍4😢31💯1
اشتي اجيب سؤال
ايش عمل المؤشر في السي بلس بلس
Pointer
ما عمل(*, &)
في pointer
👍1🔥1💯1🏆1
رد علا السؤال هانا @yahfsh
أو الرد عن طريق البوت @ll77_ll99_bot
تحياتي لكم
💯21😁1
This media is not supported in the widget
VIEW IN TELEGRAM
عالم برمجةوتقنية الحاسوب C. P. W
برنامج في فيجول بيسك 😊😊😊
تفظلو يا مبرمجين