alaestor

[Intro] main.cpp

Dec 22nd, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. // include a header from the standard library
  2. #include <iostream>
  3.  
  4. // declare the "main(int,char*[])" entrypoint
  5. // note use of [[maybe_unused]] attribute to prevent compiler warnings
  6. int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
  7. {
  8.     // output string to "std::cout", the "standard out" stream
  9.     std::cout << "Hello, World!" << std::endl;
  10.  
  11.     // return an exitcode (zero for "OK")
  12.     return 0;
  13. }
Add Comment
Please, Sign In to add comment