Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Example 1 : output, basic structure of C++ code
- */
- #include <iostream> // this imports the library that contains I/O utilities
- using namespace std; // this line save us codes; instead of using std::cout, we just need to use cout
- int main(){
- // This is a single line comment
- cout << "Hello World!" << endl; // endl indicates the start of a new line
- /*
- This is a multiline comment.
- We just made the most simple programm we could.
- */
- return 0; // this lines
- }
Add Comment
Please, Sign In to add comment