Lesson 2 of 24
Variables, auto மற்றும் string
8 min 20 XP
C++-ல் bool (true/false) மற்றும் string (text) types உள்ளன; C-ன் char array தொல்லை இல்லை. auto மூலம் compiler தானாக type-ஐக் கண்டுபிடிக்கும்.
Example: edit me and press Run
Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.bool இயல்பாக 1/0 என்று print ஆகும்; boolalpha போட்டால் true/false. தசம இடங்களுக்கு <iomanip>-ல் fixed << setprecision(2).