السلام عليكم انا منذر محمد من مصر و عمري 12 سنه و ماشي في ال13 حاليا المهم انا بتعلم برمجه من سن 11 سنه واتعلمت HTML python,C++ و انا حاليا دايس في مجال تطوير الالعاب و بستخدم محرك جودو ب جهاز dell latitude e5450 ب 16 غيغا رام DDR3L وانا من ساعت لما لبدات في تطوير الالعاب ده ومش لاقي كورس كويس واد يعلمني ال 3D في جودو بس انا كان بس كل طلبي من المجتمع ده انكم تدلوني على طريقه ابدا بيها مجال تطوير لالعاب بمحرك جودو و وابدا ازاي وامشي ازاي و مع شوية مساعدات منكم وتدلوني على فيديوهات او كورسات مجانيه عربيه اسمعها تعلمني البرمجه ب جودو (godot 4.6.1) من الصفر و بجد شكرا ليكم لقراية مقالي
ولو حد نفسو يشوف جزء من مشاريعي وانا بتعلم C++ ف ده مشروع صغير كدا لمكنة ATM عملته عشان اتسلى في وقت فراغي:
#include <iostream>
using namespace std;
// ********Variables***********//
int balance = 1000;
int deposit = 0;
int withDraw = 0;
int password = 1234;
int choice = 0;
// ********End of Variables***********//
// ***** Functhions *****
// func display the Menu of ATM
void show_menu(){
cout << "***** Menu *****\n\n";
// shooses
cout << "1: Balance\n";
cout << "2: With Draw\n";
cout << "3: Deposit\n";
cout << "4: EXIT\n\n";
cout << "***************\t***************** \n\n";
// shooses
}
void proccess(){// start of process func
cout << "Enter your password \t:";
cin >> password;cout << endl;
do{ //start of dow while
if (password == 0000){ // start of if password
cout << "Enter your choice \t:"; cin >> choice; cout << endl;
// start of switch
switch(choice){
// when user want to know his balance
case 1 :
cout << "your balance is :" << balance << endl << endl;
break;
// when user want to take money from his balance
case 2:
cout << "WARNING! YOUR BALANCE IS :" << balance << " Enter the amount :";
cin >> withDraw;
if (withDraw > balance){
cout << "SORRY this whith draw > balance (TRY AGAIN your balace is " << balance << " )" << endl << endl;
}
else{
balance -= withDraw;
cout << "Now : your balance is :" << balance << endl;
}
break;
// when user want to deposit mony in his balance;
case 3:
cout << "OK your balance is : " << balance << " ";
cout << "Enter your deposit money \t:";cin >> deposit; cout << endl << endl;
// balance = balance + deposit
balance += deposit;
cout << "OK Now your new balance is : " << balance << endl << endl;
break;
// when user want to exit of program
case 4 :
cout << "THANK YOU " << endl;
break;
}// end of switch
}// end of if password
else
{
char option = 'o';
cout << "SORRY thise password is wrong if you want to try again press [y] for yes if you don't want try again press [n] for now : ";cin >> option;
if (option == 'y'|| option == 'Y'){
cout << "enter your password again : ";cin >> password;
}
else{
choice = 4;
}
}
}while(choice < 4); // end of do while
}// end of process func
// ***** End of the Functhions *****
int main(){
show_menu();
proccess();
return 0;
}
الكود ده تقدر تاخده كوبي وتحط باسط في اي IDE عندم وهيشتغل عادي لما تدوس run بعد ما تبنيه و برضه لو في حد عايز يعرف ال IDE الي انا بستخدمه ل C++ ف هوا Zinjal