C++ Neural Networks and Fuzzy Logic: Preface



Download 1,14 Mb.
Pdf ko'rish
bet44/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   40   41   42   43   44   45   46   47   ...   443
Bog'liq
C neural networks and fuzzy logic

Overloading Operators

You can overload operators in addition to overloading functions. As a matter of fact, the system defined left

shift operator << is also overloaded in C++ when used with cout, the C++ variation of the C language printf

function. There is a similar situation with the right shift operator >> in C++ when used with cin, the C++

variation of the C language scanf function. You can take any operator and overload it. But you want to be

cautious and not overdo it, and also you do not create confusion when you overload an operator. The guiding

principle in this regard is the creation of a code−saving and time−saving facility while maintaining simplicity

and clarity. Operator overloading is especially useful for doing normal arithmetic on nonstandard data types.

You could overload the multiplication symbol to work with complex numbers, for example.

Previous Table of Contents Next

Copyright ©

 IDG Books Worldwide, Inc.

C++ Neural Networks and Fuzzy Logic:Preface

Overloading Operators

33




Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   ...   443




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

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish