C++ is a general-purpose programming language. C++ is used to create computer programs. Anything from art applications, music players and even video games! C++ was derived from C, and is largely based on it.
RSES CODE PLAYGROUND DISCUSS TOP LEARNERS Hello, World! 10 2/6 Your First C++ Program The C++ compiler ignores blank lines. In general, blank lines serve to improve the code's readability and structure. Whitespace, such as spaces, tabs, and newlines, is also ignored, although it is used to enhance the program's visual attractiveness. #include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; } Try It Yourself In our code, the line using namespace std; tells the compiler to use the std (standard) namespace . The std namespace includes features of the C++ Standard Library.
Comments
Post a Comment