Professional Documents
Culture Documents
Daprogramebis Safuzvlebi Leqcia # 2
Daprogramebis Safuzvlebi Leqcia # 2
leqcia #2
2022-2023 sasw.w. Semodgomis semestri
Tsu asoc. prof. naTela arCvaZe
• იდენტიფიკატორი – ეს პროგრამული
ობიექტის სახელია.
იდენტიფიკატორებში შესაძლოა
გამოყენებული იყოს ლათინური
ასოები, ციფრები და ქვედა ტირეს.
მაგალითად, სწორი სახელებია:
Abc, ar1, b_5, _Tlk
არასწორი სახელებია: 1ab, b_5(6, T{5}k
დარეზერვირებული სიტყვები იგივე გასაღები
სიტყვები
And double Mutable switch
And_eq dynamic_cast Namespace template
Asm else New this
Auto enum operator throw
bool explicit new true
break export private try
case extern protected typedef
catch false public typeid
char float register typename
reinterpret_cas
class for union
t
const friend return unsigned
const_cast goto short using
continue if signed virtual
default inline sizeof void
delete int static volatile
do long struct wchar_t
while
ოპერაციის ნიშნები
• უნარული ოპერაციები:
• ++; –– ; sizeof; ~; ! ; + ; &; *; new;
delete; (type) ;
• ბინარული ოპერაციები:
• * ; / ; % ; + ; – ; << ; >>; < ; <= ; > ; >= ;
== ; != ;
• & თანრიგობრივი კონიუქცია (და)
• ^ თანრიგობრივი უარყოფა ან
• | თანრიგობრივი დიზიუნქცია (ან)
მუდმივები
• მთელი
• ათობითი (მაგ. 8, 0, 199226)
• რვაობითი ( მაგ. 01, 020, 07155)
• თექვსმეტობითი ( მაგ. 0xA, 0x1B8, 0X00FF)
• ნამდვილი
• ათობითი: [ციფრები].[ციფრები]
• ექსპონენციალური: [ციფრები][.][ციფრები]{E|e}[+|–]
[ციფრები]