Al-Xorzmiy nomidagi Toshkent Axborot Texnologiyalari Universiteti




Download 121,53 Kb.
Sana25.01.2024
Hajmi121,53 Kb.
#145469
Bog'liq
Dasturlash 2 Labaratoriya 1


Al-Xorzmiy nomidagi Toshkent Axborot Texnologiyalari
Universiteti

Labaratoriya ishi-1


Fan:Dasturlash 2

GURUX 071-20 (Axborot xavfsizligi sirtqi)


F.I.SH Bosimov Jaloliddin Ulug’bek o’g’li

Laboratoriya ishi №1

2. Kompyuter va video karta monitorlari sinflari va ularni bog‘lovchi funksiyalarini yarating


#include
#include
using namespace std;
namespace first
{ class monitor
{ public:
int cost;
string type;
string color;
};}
namespace second
{class videocard
{public:
int cost_1;
string type_1;
string color_1;};}

void function(first::monitor c, second::videocard c_1)


{cout<int main ()


{first::monitor c;
second::videocard c_1;
cin>>c.cost>>c_1.cost_1;
function(c,c_1);
}

Download 121,53 Kb.




Download 121,53 Kb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Al-Xorzmiy nomidagi Toshkent Axborot Texnologiyalari Universiteti

Download 121,53 Kb.