Lesson 2 of 24
Variables, auto, string
8 min 20 XP
C++-ൽ bool (true/false), string (ടെക്സ്റ്റ്) എന്നിവയുണ്ട്, അതിനാൽ 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 print ചെയ്യുന്നു. ദശാംശസ്ഥാനങ്ങൾക്ക് <iomanip>-ൽ നിന്ന് fixed << setprecision(2) ഉപയോഗിക്കൂ.