نصائح و استشارات برمجية
ممكن موقع او قناه ادرس عليها اساسيات لغه c++ وخاصه الclass
شوف الموقع دا ⬇️:
m3md69.github.io/NULLEXIA
فيه دورات تعليمية لناس بتعرف تشرح .. كل اللي عليك انك تروح لقسم التعلم و تختار اللي عايزه .. الناس اللي بتشرح مختارهم بنفسي
m3md69.github.io/NULLEXIA
فيه دورات تعليمية لناس بتعرف تشرح .. كل اللي عليك انك تروح لقسم التعلم و تختار اللي عايزه .. الناس اللي بتشرح مختارهم بنفسي
نصائح و استشارات برمجية
طب اي الفرق بين ++c و c++
• علامتين ++ بعد المتغير كدا ⬇️
• علامتين ++ قبل المتغير كدا ⬇️
a++• معناها انه هيزود واحد بس لما يتم استدعاء المتغير بعد المرة اللي جايه، يعني من تاني مرة هنستدعي فيها المتغير هيقون مزود الواحد اللي خزنهوله، زي كدا ⬇️
int a = 1;-----
cout << a++ <<endl;
cout << a++;
1■■■■■■■■
2
• علامتين ++ قبل المتغير كدا ⬇️
++a• معناها انه هيزود واحد على طول، اول ما يتم استدعائه من اول مرة، زي كدا ⬇️
int a = 1;-----
cout << ++a <<endl;
cout << ++a;
2
3
عندي واجب اني اكتب كود بلغه جافا
وانا تحضيري حرفيا صفر ولا شيء فاهمته كيف اقدر اكتبه بنفسي؟ من وين اقدر اتعلم لغة جافا عشان بحل الواجب
وانا تحضيري حرفيا صفر ولا شيء فاهمته كيف اقدر اكتبه بنفسي؟ من وين اقدر اتعلم لغة جافا عشان بحل الواجب
نصائح و استشارات برمجية
عندي واجب اني اكتب كود بلغه جافا وانا تحضيري حرفيا صفر ولا شيء فاهمته كيف اقدر اكتبه بنفسي؟ من وين اقدر اتعلم لغة جافا عشان بحل الواجب
• من اليوتيوب، و من اي منصة دورات تعليمية زي Udemy و Udacity
• و تقدر تشوف الموقع دا ⬇️:
m3md69.github.io/NULLEXIA
فيه دورات تعليمية لناس بتعرف تشرح .. كل اللي عليك انك تروح لقسم التعلم و تختار اللي عايزه .. الناس اللي بتشرح مختارهم بنفسي
• و تقدر تشوف الموقع دا ⬇️:
m3md69.github.io/NULLEXIA
فيه دورات تعليمية لناس بتعرف تشرح .. كل اللي عليك انك تروح لقسم التعلم و تختار اللي عايزه .. الناس اللي بتشرح مختارهم بنفسي
نصائح و استشارات برمجية
بعد ازنك مفيش فيديوهات تفهمني المجالات بتاعت البرمجة اكتر
تقدر تشوف اليوتيوب باذن الله هتلاقي فيه
نصائح و استشارات برمجية
حد يعرف الموقع ده بتاع اى؟؟
بيشرح تقريبا او بيوضح حاجات تخص دورة اسمها CS50
عندي هذا الكود يعمل لكن اوامر الاظهار لا تطبع في الاخير ما هو السبب
#include <iostream>
using namespace std;
class publiction{
protected:
string title;
float price;
public:
publiction(string n,float p){
title=n;
price=p;
}
};
class Book:public publiction{
protected:
int pagecount;
public:
Book(string n,float pri,int page):publiction(n,pri){
pagecount=page;
}
void display(){
cout<<"The Title Of Book Is "<<title<<endl;
cout<<"The Price Of Book = "<<price<<"$"<<endl;
cout<<"The Number Of Page = "<<pagecount<<endl;
}
};
class Tape:public publiction{
protected:
float time;
public:
Tape(float m):publiction(){
time=m;
}
void displaytime(){
cout<<"The Time You Need = "<<time<<" Minutes"<<endl;
}
};
int main(){
int x;
string n;
float a,b;
cout<<"Enter The Title"<<endl;
cin>>n;
cout<<"Enter The Price"<<endl;
cin>>a;
cout<<"Enter The Time"<<endl;
cin>>b;
cout<<"Enter The Number Of Page "<<endl;
cin>>x;
Book obj(n,a,x);
Tape g(b);
obj.display();
g.displaytime();
return 0;
}
using namespace std;
class publiction{
protected:
string title;
float price;
public:
publiction(string n,float p){
title=n;
price=p;
}
};
class Book:public publiction{
protected:
int pagecount;
public:
Book(string n,float pri,int page):publiction(n,pri){
pagecount=page;
}
void display(){
cout<<"The Title Of Book Is "<<title<<endl;
cout<<"The Price Of Book = "<<price<<"$"<<endl;
cout<<"The Number Of Page = "<<pagecount<<endl;
}
};
class Tape:public publiction{
protected:
float time;
public:
Tape(float m):publiction(){
time=m;
}
void displaytime(){
cout<<"The Time You Need = "<<time<<" Minutes"<<endl;
}
};
int main(){
int x;
string n;
float a,b;
cout<<"Enter The Title"<<endl;
cin>>n;
cout<<"Enter The Price"<<endl;
cin>>a;
cout<<"Enter The Time"<<endl;
cin>>b;
cout<<"Enter The Number Of Page "<<endl;
cin>>x;
Book obj(n,a,x);
Tape g(b);
obj.display();
g.displaytime();
return 0;
}
#include <iostream>
using namespace std;
class publiction {
protected:
string title;
float price;
public:
publiction(string n, float p) {
title = n;
price = p;
}
};
class Book : public publiction {
protected:
int pageCount;
public:
Book(string n, float pri, int page) : publiction(n, pri) {
pageCount = page;
}
void display() {
cout << "The Title Of Book Is " << title << endl;
cout << "The Price Of Book = " << price << "$" << endl;
cout << "The Number Of Page = " << pageCount << endl;
}
};
class Tape : public publiction {
protected:
float time;
public:
Tape(string n, float p, float m) : publiction(n, p) {
time = m;
}
void displaytime() {
cout << "The Time You Need = " << time << " Minutes" << endl;
}
};
int main() {
string n;
float a, b;
int x;
cout << "Enter The Title" << endl;
cin >> n;
cout << "Enter The Price" << endl;
cin >> a;
cout << "Enter The Time" << endl;
cin >> b;
cout << "Enter The Number Of Page " << endl;
cin >> x;
Book obj(n, a, x);
Tape g(n, a, b);
obj.display();
g.displaytime();
return 0;
}