مرحبا يا حلوين!!
أنا الحين وصلت للـ "Classes" في الكتاب إللي ماشي معاه, و كل شي تمام, بس في حته صغيره مو فاهمنها, ممكن توضحوا لي وظيفه void قبل الـ member functions؟؟
كود:
#include <iostream> // for cout
#include <cstdlib>
using namespace std;
class Cat // begin declaration of the class
{
public: // begin public section
int GetAge(); // accessor function
void SetAge (int age); // accessor function
void Meow(); // general function
private: // begin private section
int itsAge; // member variable
};