Toshkent arxitektura-qurilish instituti
Qurilishni boshqarish fakulteti
“Axborot texnologiyalari” kafedrasi
“Qurilishda axborot texnologiyalari” fanidan
3-hisob grafik ishi
Mavzu: C++ dasturlash tilida algoritmlar bilan ishlash
Bajardi: Axmedov O’tkir
Guruh: 54-21
Tekshirdi: katta o’qituvchi Jurayev Sh.
Toshkent 2021
Mundarija:
Kirish
Xulosa
Menga berilgan vazifa
Foydalaniglan Adabiyotlar
Xulosa
C++ dasturlash tili odatda foydalanuvchilarga birinchi bo'lib tavsiya etiladigan til sifatida qaraladi. C++ tilini oraliq til sifatida qarashimiz mumkin. U quyi darajada to'g'ridan to'g'ri qurilmalar uchun ham ishlay olsa, yuqori darajadagi til sifatida ham turli loyihalarda namoyon bo'la oladi.
C++ tarixi
C++ yuqori darajadagi dasturlash tili bo'lib, u Bjarne Stroustrup tomonidan C tilining kengaytirilgan varianti sifatida yaratiladi. Bu tilning ustuvor tomoni unda Obyektga yo'naltirilgan dasturlashning mavjud bo'lganida deb qarash mumkin. C++ tili turli yo'nalishdagi mahsulotlar yaralishida ahamiyatli va mashhur bo'lgan, jumladan video o'yinlar, desktop dasturlari, serverlar, turli aloqa vositalarini misol sifatida ko'rish mumkin.
C++ da yaratilgan mashhur dasturlar va platformalar
Windows;
Facebook (server)
Adobe Photoshop, Illustrator, Premiere Pro;
Mozilla Firefox;
MySQL server;
AutoDesk Maya;
Chiziqli hisoblash jarayonini blok-sxemasi va dasturini tuzish.
1.
2.
3. #include
#include
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv)
{int x,y; float g;
cout<<"x="; cin>>x;
cout<<"y="; cin>>y;
g=fabs(pow(x,2)-1/(exp(y)+3))-(1+pow(sin(y),3))/pow(y,2);
cout<<"g="<
system("pause");
return 0;
}
Tarmoqlanuvchi jarayonga namuna
1.
2.
3. using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main() {
double x, y;
cout<<"x=";
cin>>x;
if (x>0)
cout<<"y=true";
else
cout<<"y=false";
system("pause");
return 0;
}
Takrorlanuvchi jarayonlarda blok-sxemasini va dasturini tuzish.
#include
#include
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv )
{ double x, y;
for (x=0; x<=2; x=x+0.2)
{
y=log(x)-atan(x)+sqrt(x);
cout<<"x="<
return 1;
}
BERILISHI.
NATIJA
#include
#include
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
i nt main(int argc, char** argv)
{ double x, y, S=0;
for (x=1; x<=7; x=x+1)
{y=2*x+5*x+9;
cout<<"x="<
S=S+y;
}
cout<<"S="<
system("PAUSE");
return 0;
}
Foydalanilgan ta’lim saytlari va adabiyotlar:
https://www.w3schools.com/CPP/default.
https://en.m.wikipedia.org/wiki/C%252B
https://www.programiz.com/cpp-programming&sa
https://www.cplusplus.com/doc/tutorial/
https://www.learncpp.com/
С++ tili asoslari» (Amaliy qo'llanma)
C vа C++ tili" kitobi, Sh. A. Nazirov
Mukqmmal dasturlash, Javlon Abdullo
Do'stlaringiz bilan baham: |