السلام عليكم و رحمة الله و بركاته
حاب أسئلكم سؤال الحين مثلا في هذا الكود
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <string>
using std::getline;
using std::string;
int main()
{
int stu_num,choice,quzzez,homework,finalexzam,research;
string comet;
cout << "Enter student number: ";
cin >> stu_num ;
if ( stu_num == 11111)
{
cout << "Wlecome to the student college profile \n" << endl ;
cout << "1- Student profile \n 2-Student acadmic State \n 3-Send a message to the student \n 4-Enter Student dagree \n";
cout << "What do you went to do (Enter the Number): \n " << endl;
}
else
{
cout << "worng number \n";
return 0;
}
}مثلا مثل ما أنتو شايفين لا أدخلت رقم غير الواحد يعطني الرساله اللي كتبتها لكن يقفل البرنامج أبي أعرف كيف أخلي الداله ترجع من جديد لما يكتب المستخدم الرقم الصحيح فهمتو علي اللي هو stu_num=1
