First Program in C++: Printing a Line of Text - C++ Language Basics

C++ examples for Language Basics:Hello World

Description

First Program in C++: Printing a Line of Text

Demo Code

#include <iostream> 

int main() {/*from w w w.ja  v  a2s  .  com*/
   std::cout << "Welcome to C++!\n"; // display message

   return 0; // indicate that program ended successfully
}

Result


Related Tutorials