Al-Xorzmiy nomidagi Toshkent Axborot Texnologiyalari Universiteti


Download 121.53 Kb.
Sana24.12.2022
Hajmi121.53 Kb.
#1051391
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.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling