تعلم البرمجة بلغة ++C
Open in Telegram
💻 الى كل المبرمجين 🔴سوف تجد شرح لغة السي بلاس بلاس للمبتدئين حتى الاحتراف 📺فيدوهات شرح عديدة 🎥 برامج مجانية 🎁 مشاريع مجانيه 📚 كتب تصميم وبرمجة 📚 مراجع واسئلة محلولة 💻برامج واكواد كثيرة كل ذلك في قناتي 👇 https://t.me/LearnCPlus_Plus
Show more2 315
Subscribers
No data24 hours
-77 days
-2630 days
Posts Archive
اخواني وزملائي ارجوا منكم
الدعاء لصديقي استشهد في
يومنا هذا حفظكم الله ورعاكم
ولا اراكم الله شرُ فيكم ولا اهلكم
ومن تحبوووووووون 💔💔🥺
▪️صارحني لتلقي النقد البناء بسرية تامة
▫️ هنا يمكنك ارسال اي رسالة لي , انا مستعد لمواجهة الصراحة 😅 .
-
تعلم البرمجة بلغة ++C:
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
srand(time(0)); // Seed the random number generator.
string password; // Create a string to hold the password.
for (int i = 0; i < 100; i++) { // Loop 100 times.
for (int j = 0; j < 20; j++) { // Generate 20 characters per password.
int randomNumber = rand() % 3; // Generate a random number between 0 and 2.
if (randomNumber == 0) { // If the random number is 0, generate a capital letter.
char c = 'A' + rand() % 26; // Generate a random capital letter between A and Z.
password += c; // Append the character to the string.
} else if (randomNumber == 1) { // If the random number is 1, generate a small letter.
char c = 'a' + rand() % 26; // Generate a random small letter between a and z.
password += c; // Append the character to the string.
} else if (randomNumber == 2) { // If the random number is 2, generate a number.
char c = '0' + rand() % 10; // Generate a random number between 0 and 9.
password += c; // Append the character to the string.
}
}
cout << "Password " << i+1 << ": " << password << endl;// Print out each generated password on its own line in the console window.
password = "";// Reset the string for next loop iteration
}
return 0;// End program execution with no errors or warnings.
}
Available now! Telegram Research 2025 — the year's key insights 
