Lesson 1 of 24

உங்கள் முதல் C++ ProgramYour First C++ Program

7 min 20 XP

C++, C-ன் மேம்பட்ட வடிவம்: வேகம் + classes + STL. Games, browsers, trading systems, competitive programming எல்லாம் C++-ல். cout << மூலம் திரையில் காட்டுகிறோம்; endl அல்லது "\n" புதிய வரி.

C++ builds on C with classes and the STL while keeping C's speed: games, browsers, trading systems and competitive programming all use it. cout << prints to the screen; endl or "\n" ends the line.

Example: edit me and press Run

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.

using namespace std; எழுதினால் std::cout என்பதற்குப் பதிலாக cout என்று எழுதலாம். பெரிய projects-ல் std:: என்று எழுதுவதே நல்லது.

using namespace std; lets you write cout instead of std::cout. In large projects, writing std:: explicitly is considered better style.

Challenge

+20 XP

இந்த இரண்டு வரிகளையும் சரியாக print செய்யுங்கள்: Hello C++ I can code!

Print these two lines exactly: Hello C++ I can code!

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.