Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // include a header from the standard library
- #include <iostream>
- // declare the "main(int,char*[])" entrypoint
- // note use of [[maybe_unused]] attribute to prevent compiler warnings
- int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
- {
- // output string to "std::cout", the "standard out" stream
- std::cout << "Hello, World!" << std::endl;
- // return an exitcode (zero for "OK")
- return 0;
- }
Add Comment
Please, Sign In to add comment